xml:lang attribute
Sets the language code of the XML document.
The declared xml:lang attribute is considered to apply to all attributes and content of the element, and all of its children unless overridden with an instance of the xml:lang attribute.
Possible values:
String that sets the language code. For more information about language codes click here.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the xml:lang attribute:
|
||||
<a xml:lang="us">Apple</a> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, area, b, big, body, button, caption, center, cite, code, col, colGroup, dd, del, dfn, dir, div, dl, dt, em, fieldSet, font, form, H1, H2, H3, H4, H5, H6, head, hr, html, i, img, ins, isIndex, kbd, label, legend, li, link, map, menu, meta, nobr, noScript, object, ol, optGroup, option, p, pre, q, s, samp, select, small, span, strike, strong, style, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, title, tt, u, ul, var
User Contributed Comments