HTML CSS Reference/HTML Attributes Reference/xmlns

Материал из Web эксперт
Перейти к: навигация, поиск

"xmlns" Example

   <source lang="html4strict">
   

<html xmlns:t ="urn:schemas-microsoft-com:time"> <?import namespace="t" implementation="#default#time2"> <head> <style> .time {

  behavior: url(#default#time2); 

} </style> </head> <body> </body> </html>


     </source>
   
  


xmlns is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<html> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"xmlns" Syntax and Note

   <source lang="html4strict">

Note:

This attribute declares a namespace for creating unique custom tags in the HTML document. For multiple namespaces, repeat the xmlns declaration for each additional one, separate each declaration with a space.

Syntax:

<html xmlns:value> . . . </html>


     </source>