The xmlns label detailed

Source: Internet
Author: User
xmlns attribute

The xmlns attribute can define one or more alternative namespaces in the document. This property can be placed in the start tag of any element within the document. The value of this property is similar to the URL, which defines a namespace that the browser uses for all content within the element that contains the property.

For example, if you need to use an XHTML document that conforms to an XML specification, you should use at least one xmlns attribute in the

 

If you need to display a string of mathematical formulas in a DIV element, you can define a mathematical namespace for that div element. Like this:

<div xmlns= "Http://www.w3.org/1999/Math/MathMl" >x3/x</div>

If you do not want to define the xmlns attribute in a DIV element each time you display a division formula, it is a better idea to define a namespace with a prefix at the beginning of the document:

 

You can then use the prefix in the Div, just like this:

<math:div>x3/X<div>

Another example is

<title sec:authentication= "name" ></title> (get login username).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.