google / google/styleguide

The HTML style guide doesn't list what to do about language tagging

Open
#364 1 comment 1 reaction 1 assignee Claimed by @tonyruscoe View on GitHub
lang:html
Dominant language
HTML
Stars
39.6k
Forks
12.9k
Avg merge
42m
Merged PRs (30d)
15

Description

The HTML style guide [says to not use the `` tag](https://google.github.io/styleguide/htmlcssguide.html#Optional_Tags)

The [W3 site says to **always use the HTML tag**](https://www.w3.org/International/questions/qa-http-and-lang) because you need to specify the language as in

The google HTML guide does not say how to deal with language.

Setting the language is often important because browsers will often guess wrong and offer to translate pages for which no translation should have been offered.

Asking the server to send the correct http header seems right out. For one it requires the server to maintain some kind of metadata about each file. metadata that might get out of sync and metadata that might not be in control of the person creating the document.

It seems like google's style guide should say what to do here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.