HTML Foundations (Hand‑Coding)

Speaking the Native Language of the Web

Anatomy of an HTML Document

      
        <!DOCTYPE html>
        <html>
          <head>
            <title>My First Page</title>
          </head>
          <body>
            <h1>This is a Heading (h1)</h1>
            <h2>This is a Subheading (h2)</h2>
            <h3>This is a Subheading (h3)</h3>
            <h4>This is a Subheading (h4)</h4>
            <h5>This is a Subheading (h5)</h5>
            <h6>This is a Subheading (h6)</h6>
            <p>This is a paragraph.
              <br>This is a line break. It starts a new line within a paragraph. 
              <br>(Note: <br> is self-closing).        
              <br><strong>This is strong text.</strong>
              <br><b> This is bold text.</b> 
              <br><em>This is emphasized text.</em>
              <br><i> This is italicized text.</i>
            </p>
          </body>
        </html>
      
    

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

|