lang attribute
Specifies the language of the element.
The value of the lang attribute is used by user agents to choose language-specific quotations, numbers and glyphs, but it also helps spell checkers and search engines.
JavaScript page for this attribute: lang. You can find other example(s) there. |
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 lang attribute:
|
||||
<span lang="en">Welcome</span> <span lang="fr">Bienvenue</span> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
a, abbr, acronym, address, applet, area, b, baseFont, bdo, big, blink, blockQuote, body, button, caption, center, cite, code, col, colGroup, comment, dd, del, dfn, dir, div, dl, dt, em, embed, fieldSet, font, form, frameSet, H1, H2, H3, H4, H5, H6, head, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:hidden, input:image, input:password, input:radio, input:range, input:reset, input:search, input:submit, input:text, ins, isIndex, kbd, keygen, label, legend, li, link, listing, map, marquee, menu, meta, nobr, noFrames, noScript, object, ol, optGroup, option, p, plainText, pre, q, rt, ruby, s, samp, script, select, small, span, strike, strong, style, sub, sup, table, tBody, td, textArea, tFoot, th, tHead, title, tr, tt, u, ul, var, xmp
External links:
User Contributed Comments