![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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 XHTML SyntaxWriting XHTML demands a clean HTML syntax. Some More XHTML Syntax Rules:
Attribute Names Must Be In Lower CaseThis is wrong:
This is correct:
Attribute Values Must Be QuotedThis is wrong:
This is correct:
Attribute Minimization Is ForbiddenThis is wrong:
This is correct:
Here is a list of the minimized attributes in HTML and how they should be written in XHTML:
The id Attribute Replaces The name AttributeHTML 4.01 defines a name attribute for the elements a, applet, frame, iframe, img, and map. In XHTML the name attribute is deprecated. Use id instead. This is wrong:
This is correct:
Note: To interoperate with older browsers for a while, you should use both name and id, with identical attribute values, like this:
IMPORTANT Compatibility Note: To make your XHTML compatible with today's browsers, you should add an extra space before the "/" symbol. The Lang AttributeThe lang attribute applies to almost every XHTML element. It specifies the language of the content within an element. If you use the lang attribute in an element, you must add the xml:lang attribute, like this:
Mandatory XHTML ElementsAll XHTML documents must have a DOCTYPE declaration. The html, head and body elements must be present, and the title must be present inside the head element. This is a minimum XHTML document template:
Note: The DOCTYPE declaration is not a part of the XHTML document itself. It is not an XHTML element, and it should not have a closing tag. You will learn more about the XHTML document type definition in the next chapter. Viewed:279
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 |
||||||||||||||||||||||||||||||||||||||||||||||||||||