![]() |
||||||||||||||||||||||||
| Home --- Topics --- Articles --- Offers --- Register --- Contact us | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
Did you know? if you register at Hamid School you can save up to 45% on hosting packages offered by Surreyhost.com . Don't miss out, every minute counts! Are you Confused? Click here to learn how to use hamid school Differences Between XHTML And HTMLThe Most Important Differences:
XHTML Elements Must Be Properly NestedIn HTML, some elements can be improperly nested within each other, like this:
In XHTML, all elements must be properly nested within each other, like this:
Note: A common mistake with nested lists, is to forget that the inside list must be within <li> and </li> tags. This is wrong:
This is correct:
Notice that we have inserted a </li> tag after the </ul> tag in the "correct" code example. XHTML Elements Must Always Be ClosedNon-empty elements must have a closing tag. This is wrong:
This is correct:
Empty Elements Must Also Be ClosedEmpty elements must also be closed. This is wrong:
This is correct:
XHTML Elements Must Be In Lower CaseTag names and attributes must be in lower case. This is wrong:
This is correct:
XHTML Documents Must Have One Root ElementAll XHTML elements must be nested within the <html> root element. Child elements must be in pairs and correctly nested within their parent element. The basic document structure is:
Viewed:439 Original Author: W3school however, some changes have been made to the main contents.
Did you know? if you register at Hamid School you can learn web programming and designing for free and also you can save up to 45% on hosting packages offered by Surreyhost.com . Don't miss out, every minute counts!
|
|
|||||||||||||||||||||||
|
Sponsored by: Surreyhost.com Coded and designed by: Hamid Moudi HPLA Follow us: ![]() ![]() |
||||||||||||||||||||||||