siddu Posted November 22, 2010 Report Posted November 22, 2010 I wanted to learn HTML, not XHTML, aren't they different?
falkencreative Posted November 22, 2010 Report Posted November 22, 2010 Take a look at http://www.killersites.com/community/index.php?/topic/57-html-or-xhtml-updated-30-july-06/
LSW Posted November 22, 2010 Report Posted November 22, 2010 Yes they are, two vastly different languages and purposes. Cheers Ben!
Wickham Posted November 23, 2010 Report Posted November 23, 2010 When Kyle says that HTML and XHTML are vastly different, I think he is referring to "pure" XHTML written with content="application/xhtml+xml in the meta tag. However, everyone using an XHTML doctype for normal websites uses content="text/html; (like this forum) which just results in the page being processed as HTML, so the only difference using a XHTML doctype is that you have to use the coding format like lower case names and closing tags with /> instead of > but the end result is the same. So whether you use HTML 4.01 or XHTML 1.0, provided you use content="text/html; in the meta tag you will have the code processed as HTML. It will get more complicated when HTML5 and XHTML2 are issued and also the compromise X/HTML5 which can be either HTML with content="text/html; or XHTML with content="application/xhtml+xml Complicated ! We recommend using HTML 4.01 on this forum and when HTML5 becomes more widely used you won't have to change closing tags back from /> to >
madhusmita Posted June 8, 2011 Report Posted June 8, 2011 HTML and XHTML are two different languages.But the difference between them is only 2 to 3%.They are almost same except some points.They are as follows: *. HTML allows <br> without </br>. But this is not allowed in XHTML. *. Empty elements like <br> and <hr> should also be closed in XTHML. *. Proper Nesting of tags are required for XHTML. You can easily learn HTML from XHTML.The codings, syntax are same except the above three.
Andrea Posted June 8, 2011 Report Posted June 8, 2011 HTML and XHTML are two different languages.But the difference between them is only 2 to 3%.They are almost same except some points.They are as follows: *. HTML allows <br> without </br>. But this is not allowed in XHTML. *. Empty elements like <br> and <hr> should also be closed in XTHML. *. Proper Nesting of tags are required for XHTML. You can easily learn HTML from XHTML.The codings, syntax are same except the above three. HTML also requires the proper nesting of tags - and XHTML also requires meta and image tags to be closed. The actual question should be,however: Which is the proper doctype to be used, HTML and XHTML - and the correct answer usually is HTML.
henrylayla Posted June 13, 2011 Report Posted June 13, 2011 Take a look at http://www.killersites.com/community/index.php?/topic/57-html-or-xhtml-updated-30-july-06/ Great post by Kyle. Helped me to clear a lot of misconceptions.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now