You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lang attribute tells the language in which a webpage's content is written and affects a lot of language-specific things, including how user agents will choose fonts for fallback.
Ideally, a web browser should choose the appropriate fonts based on the language in which the web page content is written, and this can be guided by adding a proper lang attribute to the corresponding element of the page.
In the case of Ninja's homepage, adding a lang="en" attribute to the <html> element in index.html will be enough.
The text was updated successfully, but these errors were encountered:
IMHO the default should be English and lang="en" should never exist at all. I haven't checked but I would guess that the browser assumes English by default already (would be stupid if it doesn't).
Do you have a concrete example where this fixes something?
A
lang
attribute tells the language in which a webpage's content is written and affects a lot of language-specific things, including how user agents will choose fonts for fallback.Ideally, a web browser should choose the appropriate fonts based on the language in which the web page content is written, and this can be guided by adding a proper
lang
attribute to the corresponding element of the page.In the case of Ninja's homepage, adding a
lang="en"
attribute to the<html>
element inindex.html
will be enough.The text was updated successfully, but these errors were encountered: