LANGUAGE » HTML

Base template

Best practices

W3C Validator

TagDescriptionReference
langSyntax: <lang>-<region>, where only lang is required.MDN, lang lookup
html
<!doctype html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <link rel="stylesheet" type="text/css" href="/static/index.css">
    <title>Site Name</title>
  </head>
  <body>
    <header></header>
    <nav></nav>
    <article>
      <h1>Article title</h1>
      <section>
        <h2>First section</h2>
      </section>
      <section>
        <h2>Second section</h2>
      </section>
    </article>
    <aside></aside>
    <footer></footer>
    <script src="/static/index.js"></script>
  </body>
</html>