Created
October 20, 2013 19:41
-
-
Save jethrolarson/7074296 to your computer and use it in GitHub Desktop.
What do you need in an html document
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
| 1. <!doctype html> - Always first | |
| 2. <html lang="en-us"> | |
| 2.5. <head> - Usually 3rd but technically optional | |
| 3. <meta charset="utf-8"/> - Ensures the rest of the document is interpreted correctly. Be sure this value isn't a lie. | |
| 4. <meta http-equiv="X-UA-Compatible" content="IE=edge"/> - Makes IE render the document correctly | |
| 5. <title>title</title> - Put should be before imports and after the encoding issues to prevent xss vulnerability | |
| 6. <link rel="stylesheet"... - Prevent FOUC | |
| 7. everything else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment