Last active
September 3, 2024 20:59
-
-
Save alyssaq/37645ef8af51768677e2 to your computer and use it in GitHub Desktop.
HTML5 skeleton template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
Awesome thank you!
Almost, but not quite.
The default value of
lang
is 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
superb