HTML Foundations (Hand‑Coding)

Turning Ideas Into Real Webpages, One Tag at a Time

Anatomy of an HTML Document, Part II

      
        <!DOCTYPE html>
        <html>
          <head>
            <title>My Second Page</title>
          </head>
          <body>
            <p><a href="https://example.com">This is a link</a></p>
            <p><img src="example.png" alt="example image" width="200" height="200"></p>
            <p>This is an ordered list</p>
            <ol>
              <li>First item</li>
              <li>Second item</li>
              <li>Third item</li>
            </ol>
            <p>This is an unordered list</p>
            <ul>
              <li>First item</li>
              <li>Second item</li>
              <li>Third item</li>
            </ul>
          </body>
        </html>
      
    

View how the above HTML looks in the browser (without styling).

|