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:
- Created
index.htmlin your repository. - Added headings, paragraphs, bold, italic, and line breaks.
- Committed your changes to GitHub.
- Viewed your updated page on GitHub Pages.
When you're ready, continue to the next lesson using the navigation bar.