Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: add lang attribute to the <html> element in index.html #17

Open
moposx opened this issue Feb 16, 2023 · 1 comment
Open

Comments

@moposx
Copy link

moposx commented Feb 16, 2023

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.

@jhasse
Copy link
Collaborator

jhasse commented Oct 3, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants