html lang attribute tags

html lang attribute tags

<html lang="en">

This is a code often appears, is to mark the page for the English language, according to W3C Recommendation, should lang attribute tag for each page in the main languages ​​are declared with <html>.

In fact, the lang attribute is not just only for html tags, other tags can also be used, for example, span tags.

lang attribute for the front page code consisting of not much relationship, mainly to the functional role of search engines and browsers.

E.g:

  • According to set css styles in different languages ​​according to the lang attribute, or fonts
  • Tell the search engine to do precisely identify
  • Let grammar checker to do speech recognition
  • Translation tools do help to identify
  • Help web readers do recognize
    etc.

Guess you like

Origin www.cnblogs.com/1120lwk/p/12604653.html