XHTML Tutorial








Sample of the pdf document : 




Important XHTML Rules:

•Elements must be properly nested:

–Wrong: <ul><li>blah blah</ul></li>
–Right: <ul><li>blah blah</li></ul>

•Elements must always be closed:

–Wrong: <p>Hello. This is paragraph that isn’t closed.
–Right: <p>This is the right way.</p>

•Element and Attribute names must be in lowercase:

–Wrong: <A HREF=“http://linguistlist.org”TARGET=“_blank”/>
–Right: <a href=“http://linguistlist.org”target=“_blank”/>

•Attribute values must be quoted:

–Wrong: <a href=http://linguistlist.orgtarget=_blank/>
–Right: <a href=“http://linguistlist.org”target=“_blank”/>


Mandatory XHTML Elements:

•the DOCTYPE
•the Head
•the Body



<head>
•The head element contains general information, also called meta-information, about a document.
•XHTML requires the <title>element specified in the <head> element.
•Other elements in the <head> include references to cssfiles and javascriptfiles used in the page.......




                                                     Click here for  Download PDF / FREE
                                                                                       


0 commentaires: