-
-
Save alyssaq/37645ef8af51768677e2 to your computer and use it in GitHub Desktop.
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>App</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <script charset="utf-8" src="js/app.js"></script> | |
| <link rel="stylesheet" href="css/app.css" /> | |
| </head> | |
| <body> | |
| <h1>Hello!</h1> | |
| </body> | |
| </html> |
superb
Awesome thank you!
Almost, but not quite.
The default value of
langis unknown, therefore it is recommended to always specify this attribute with the appropriate value. ~ https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
So, if the page language is...
- U.S. English, use:
<html lang="en-US"> - British English, use:
<html lang="en-GB"> - English (but regional variation unspecified), use:
<html lang="en"> - and so on
References
-
https://www.w3.org/International/articles/language-tags/ also.
-
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
The lang global attribute helps define the language of an element: the language that non-editable elements are written in, or the language that the editable elements should be written in by the user. The attribute contains a single "language tag" in the format defined in RFC 5646: Tags for Identifying Languages (also known as BCP 47).
good
Very useful. Thanks!