Why put a lang="en" in the <html> tag -
this question has answer here:
normally when write html doc write
<!doctype html> <html> <head> ...
i looking @ source of website other day notice had included langauge attribute in <html>
tag read
<!doctype html> <html lang="en"> <head> ...
any idea why ? guessed may search engines, surly advanced nlp search engines can nowadays work out language page in..
from w3c
this attribute specifies base language of element's attribute values , text content. default value of attribute unknown.
language information specified via lang attribute may used user agent control rendering in variety of ways. situations author-supplied language information may helpful include:
- assisting search engines
- assisting speech synthesizers
- helping user agent select glyph variants high quality typography
- helping user agent choose set of quotation marks
- helping user agent make decisions hyphenation, ligatures, , spacing
- assisting spell checkers , grammar checkers
the lang attribute specifies language of element content , attribute values; whether relevant given attribute depends on syntax , semantics of attribute , operation involved.
for more info on lang
attribute
Comments
Post a Comment