Why register for free on WebRadiance? |
Why register for free on WebRadiance? |
![]() |
Welcome to WebRadiance forums! WebRadiance is a place for discussion and help on a large range of web design and development related topics such as HTML, CSS, ASP & .NET, PHP and SEO. It is provided for free, without ads and is a friendly place for beginners and professionals alike. By joining us today you can take part in our rapidly growing community. Registering enables you to:
|
![]() ![]() |
Jan 20 2008, 06:04 AM
Post
#1
|
|
|
W.R. Private Group: Members Posts: 40 Joined: 4-January 08 From: Connecticut Member No.: 742 |
I was reading around in other forums (shame on me, I know), and I heard something about XHTML 1.1 and 2.0, and whatnot. Are these smaller, better versions of XHTML Strict 1.0?
This is important to me because if I'm going to start coding along DTD lines, I really want to go with the best and latest, and then keep up on it as the standards evolve. Any ideas? -------------------- |
|
|
|
Jan 20 2008, 09:59 AM
Post
#2
|
|
![]() W.R. General Group: Administrators Posts: 2,780 Joined: 4-April 06 From: Massachusetts - USA Member No.: 5 |
XHTML 1.1 is definitely the latest not-in-draft DOCTYPE, but it requires that the content be served as application/xhtml+xml instead of the more common text/html. Normally, this would be fine, but Internet Exploder 6 doesn't understand application/xhtml+xml. This basically forces everyone who cares for their site to work in IE6 to use XHTML 1.0 Strict.
XHTML 2, which is still in working draft, is a giant leap forward, but far from being standard and up against some stiff competition (HTML 5). Read this for more information: http://www.digital-web.com/articles/html5_...ure_of_the_web/ -------------------- |
|
|
|
Jan 20 2008, 10:49 AM
Post
#3
|
|
|
W.R. Private Group: Members Posts: 40 Joined: 4-January 08 From: Connecticut Member No.: 742 |
Thanks, I'll check it out...
-------------------- |
|
|
|
Feb 16 2008, 08:44 AM
Post
#4
|
|
![]() W.R. Private First-Class Group: Members Posts: 251 Joined: 30-August 07 From: Vienna, Austria Member No.: 586 |
I read that article and even though some of it confused me, found it informative. The concluding paragraph especially made me skeptical of whether it is good to make my pages for XHTML.
I used to think that XHTML is the successor of HTML, and while it should be as far as I understood it, it wont be because of the non-existing support for XHTML's next version (XHTML2). So I guess it'd be better for me to adapt HTML markup again in thought of the future?? ----------------------------------------------------------------------------------------- I also had this problem one or two weeks ago with one of my web-pages: it would display fine in Safari, Firefox and Opera but would display the source code in IE (wtf?!). For days I was absolutely clueless as to why IE did that; it also made me hate IE even more, as if I didn't hate it enough already ( ). Then I started thinking: 'It's absolutely valid XHTML 1.0 Transitional, it's got to be something at the top!' So I looked at the top of my code...<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head>... and changed it to... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" />... which then made the page display correctly in IE too. And obviously that had something to do with Microsoft's inability to make a browser that doesn't just happens to be the worst piece of software I can think of right now. Anyway, my concern is whether it'd be good to continue developing for XHTMl or start getting used to HTML. This post has been edited by temhawk: Feb 16 2008, 08:45 AM -------------------- ![]() |
|
|
|
Aug 25 2008, 06:23 AM
Post
#5
|
|
|
W.R. Private Group: Members Posts: 1 Joined: 25-August 08 Member No.: 1,139 |
DOCTYPES THAT WORK
The following complete DOCTYPEs are the ones we need: HTML 4.01 Strict, Transitional, Frameset <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> XHTML 1.0 Strict, Transitional, Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> XHTML 1.1 DTD <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 3rd December 2008 - 06:54 PM |