homepage Welcome to WebmasterWorld Guest from 50.16.112.199
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Doctype?
What should I use, HTML or XHTML and which version and why?
johnblack



 
Msg#: 12356 posted 10:07 am on Jun 27, 2006 (gmt 0)

Sorry if this has been asked a thousand times before but which version of XHTML or HTML should I use in my DOCTYPE statement and why?

Most of the sites I work with have static HTML pages, so what should I do?

Is it just enough that they render correctly, why should I worry about this?

Any feedback greatly accepted

 

larryhatch

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 12356 posted 10:10 am on Jun 27, 2006 (gmt 0)

If you are new to this, and just writing static HTML pages like you said,
I would recommend this line, right up top:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Its about the easiest to validate (important!).
You can try tougher stuff later on. -Larry

johnblack



 
Msg#: 12356 posted 10:26 am on Jun 27, 2006 (gmt 0)

Hi Larry,

Thanks for that. That's sort of what I was thinking (HTML 4.01).

Would I be correct in thinking the only reason to go to XHTML 1.0 would be if I was considering using XSLT?

Sorry, I one of those people where a little knowledge is a dangerous thing! :O)

larryhatch

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 12356 posted 10:36 am on Jun 27, 2006 (gmt 0)

I toyed with XHTML a bit. I got in too deep too soon, and there was no real need.
Eventually I will probably have to go there, I'm in no rush now. -Larry

kiwibrit

10+ Year Member



 
Msg#: 12356 posted 10:41 am on Jun 27, 2006 (gmt 0)

Don't forget this threaed [webmasterworld.com].

johnblack



 
Msg#: 12356 posted 11:00 am on Jun 27, 2006 (gmt 0)

Thanks for that guys.

The thread and article were very interesting. I can remember buying my first HTML book many moons ago, which spouted that XHTML was the way to go. But here I am still knocking out HTML code, totally ignoring XHTML (for the moment).

So from a validation point of view I should stick to HTML 4.01 to get my web pages squeaky clean?

BTW kiwibrit, I guess you could call me britkiwi, 5 years in the land of the long white cloud since leaving the motherland

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved