Basics


Simple HTML Document


<!DOCTYPE html>
<html>

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Page Title</title>

    <link rel="stylesheet" href="styles.css">
    <script src="script.js"></script>
  </head>

  <body>
    <h1>My First Heading</h1>
    <p>My first paragraph.</p>
  </body>

</html>
      

Escape Characters / Entities

Escape characters are used to represent special characters in HTML.

The less than symbol < is represented as &lt; and the greater than symbol > is represented as &gt;.

We can escape the ampersand symbol (&) as &amp;.