Skip to content

Instantly share code, notes, and snippets.

@cuschk
Last active April 15, 2019 21:08
Show Gist options
  • Save cuschk/289dea0e4d21fb1decef to your computer and use it in GitHub Desktop.
Save cuschk/289dea0e4d21fb1decef to your computer and use it in GitHub Desktop.
Basic HTML5 file with UTF-8 encoding
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title></title>
</head>
<body>
<p></p>
</body>
</html>
<!DOCTYPE html>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title></title>
<p></p>
@cuschk
Copy link
Author

cuschk commented Mar 21, 2016

Default values for attributes:

  • script:
    • type: text/javascript
  • style:
    • type: text/css

So you can always write <script>...</script> and <style>...</style> without the type tags. See https://www.w3.org/TR/html5/scripting-1.html and https://dev.w3.org/html5/spec-preview/the-style-element.html

@cuschk
Copy link
Author

cuschk commented Oct 19, 2016

Also see joshbuchea/HEAD for relevant head tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment