Skip to content

Instantly share code, notes, and snippets.

@Nateowami
Last active January 24, 2017 06:40
Show Gist options
  • Save Nateowami/e289712d23ed441cac1fcab916dda2ee to your computer and use it in GitHub Desktop.
Save Nateowami/e289712d23ed441cac1fcab916dda2ee to your computer and use it in GitHub Desktop.
HTML5 boilerplate

Recommended (by me) HTML5 starter code

HTML doesn't actually require all of these tags, but it's good practice to include them, in my opinion. The following actually passes the W3C validator:

<!DOCTYPE html><title>T</title>

Feel free to suggest improvements. I'm thinking there may be some meta tags that should be added (e.g. a viewport one--something about mobile devices--can't remember).

<!DOCTYPE html>
<html lang="en">
<head>
<title> </title>
<meta charset="utf-8">
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment