First HTML File

Learn how to format text and build your first real webpage.

Headings

HTML has six levels of headings, from biggest to smallest:

<h1>This is a heading</h1>
<h2>This is a smaller heading</h2>
<h3>And smaller...</h3>
      

Use headings to organize your content clearly.

Paragraphs

Paragraphs are created with the <p> tag:

<p>This is a paragraph of text.</p>
      

Paragraphs help break your content into readable sections.

Bold and Italic Text

You can emphasize text using bold or italics:

<strong>This is bold text</strong>
<em>This is italic text</em>
      

strong is used for important text, while em is used for emphasis.

Line Breaks

Use <br> to force a new line:

First line<br>
Second line
      

Lesson Checkpoint

Before moving on, make sure you have:

  1. Created index.html in your repository.
  2. Added headings, paragraphs, bold, italic, and line breaks.
  3. Committed your changes to GitHub.
  4. Viewed your updated page on GitHub Pages.

When you're ready, continue to the next lesson using the navigation bar.