Skip to content

Instantly share code, notes, and snippets.

@jethrolarson
Created October 20, 2013 19:41
Show Gist options
  • Select an option

  • Save jethrolarson/7074296 to your computer and use it in GitHub Desktop.

Select an option

Save jethrolarson/7074296 to your computer and use it in GitHub Desktop.
What do you need in an html document
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