Приглашаем посетить
Лесков (leskov.lit-info.ru)

Declaring XHTML Namespaces

Previous Page
Table of Contents
Next Page

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>


Previous Page
Table of Contents
Next Page