26.11.2014 Views

HTML Namespaces and Namespace Declarations (ns=)

HTML Namespaces and Namespace Declarations (ns=)

HTML Namespaces and Namespace Declarations (ns=)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>HTML</strong> <strong><strong>Namespace</strong>s</strong> <strong>and</strong><br />

<strong>Namespace</strong> <strong>Declarations</strong> (xml<strong>ns=</strong>)<br />

http://<br />

math: for <br />

www.w3.org/1998/ the <strong>HTML</strong><br />

examples on this<br />

site<br />

http://<br />

rdf: for<br />

rdf:RDF<br />

www.w3.org/1999/02/22- the <strong>HTML</strong>rdf:List<br />

examples on this<br />

site<br />

http://<br />

rdfs: for rdfs:Datatype<br />

www.w3.org/2000/01/ the <strong>HTML</strong><br />

examples on this<br />

site<br />

http://<br />

svg: for<br />

<br />

www.w3.org/2000/ the <strong>HTML</strong><br />

examples on this<br />

site<br />

<br />

<br />

<br />

<br />

<strong>HTML</strong>-5.com<br />

rdf:about<br />

When designing schema for one or more sets of objects, you should ensure that no<br />

namespace partition (as shown in the table above) contains the same name for two different<br />

object types. Otherwise, it will be difficult to create a definition (XML Schema definition<br />

or DTD) that properly describes the schema. For example, in the table above the title<br />

element in the "no namespace URL" partition violates this requirement because it is used for<br />

RSS channel titles, RSS item titles <strong>and</strong> OPMN titles.<br />

http://www.w3.org/1999/xhtml<br />

<strong>and</strong> other <strong>HTML</strong> <strong><strong>Namespace</strong>s</strong><br />

The namespace URIs in <strong>HTML</strong> documents<br />

back to top<br />

Commonly used namespaces in <strong>HTML</strong> include:<br />

http://www.w3.org/XML/1998/namespace<br />

the URI for the XML base namespace; associated with the implicitly declared reserved<br />

prefix xml:<br />

http://www.w3.org/2000/xmlns/<br />

the namespace URI for XML namespace declarations; associated with the implicitly<br />

declared reserved prefix xmlns:<br />

4 Page 4 of 6 © 2011 Accilent Corp.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!