HTML BASICS: Documents

Every HTML document should be coded this way:

HTML file: Displayed by browser:
<!DOCTYPE html>
  <html>
    <body>
      <h1>My First Heading</h1>
      <p>My first paragraph.</p>
    </body>
  </html>

My First Heading

My first paragraph.

I've learned to space my markup language so that I can see my tags "lined up". You do not HAVE to do that!

Back buttonTable of ContentsNext button