Declaring XHTML Namespaces


In addition to declaring an appropriate DTD in a document type declaration, a valid XHTML document must also declare an XHTML namespace in the html element. Following is the XHTML 1.1 namespace, which is associated with the DTD you just learned about:

 http://www.w3.org/1999/xhtml 


The xmlns namespace declaration attribute is used to declare the XHTML namespace in the html element of an XHTML 1.1 document. Following is an example of how to specify the XHTML 1.1 namespace:

 <html xmlns="http://www.w3.org/1999/xhtml"> ... </html> 





SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net