<!DOCTYPE html>
<title>Page Title</title>

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


Example Explained

  1. The <!DOCTYPE html> declaration defines this document to be HTML5
  2. The <html> element is the root element of an HTML page
  3. The <head> element contains meta information about the document
  4. The <title> element specifies a title for the document
  5. The <body> element contains the visible page content
  6. The <h1> element defines a large heading
  7. The <p> element defines a paragraph