| Posted: 12 May 2006 19:13 | |
Registered User Currently Offline
|
Posts: 30
Join Date: Apr 2006
|
I know very little about the difference between xhtml and html, can anyone explain it to me.
Does xhtml offer alot advantages over html and will it in the future replace html ?
|
| Posted: 13 May 2006 03:38 | |
Registered User Currently Offline
|
Posts: 43
Join Date: Apr 2006
|
Afaik, XHTML is just a rework of HTML. The reason for that rework is for compliance with XML - it is meant to work for XML.
Tags are also a little strict in XHTML compared to HTML. For instance, the <br> tag should be <br/>. Also all "name" attributes are substituted as "id" in XHTML.
|
| Posted: 15 May 2006 13:01 | |
Registered User Currently Offline
|
Posts: 12
Join Date: May 2006
|
Agreed. If you are using XHTML and you declare the web page as text, is works the same as HTML.
You can check out the details about XHTML in here: http://www.w3schools.com/xhtml/default.asp
There are debates among webmasters whether XHTML is stricter and better compared to HTML but IMHO, it is not that important, just make sure that you write a clean code and good for SEO. You might want to use the W3C Validation code as a guideline in creating proper codes but it's not a requirement. Even writing the codes based on W3C validation has effect on SEO is still arguable and not proven.
|
| Posted: 28 May 2006 11:17 | |
Registered User Currently Offline
|
Posts: 40
Join Date: May 2006
|
|
Quote: The Most Important Differences:
* XHTML elements must be properly nested
* XHTML documents must be well-formed
* Tag names must be in lowercase
* All XHTML elements must be closed
From that same site that xfahmix have provided, I have found this link: XHTML versus HTML
|