Services Work Learn About Contact
0/8
Lesson 3 of 8

Text Elements

HTML provides many elements for displaying text. The most common are headings and paragraphs.

Headings range from <h1> (most important) to <h6> (least important). You should use only one <h1> per page.

The <p> element defines a paragraph. Browsers automatically add space before and after paragraphs.

HTML
<h1>Main Title</h1>
<h2>Subheading</h2>
<p>This is a paragraph of text.</p>
<p>This is another paragraph.</p>
🧠

Quick Quiz

Answer correctly to unlock the next lesson.

Support the mission

This learning platform is 100% free: no ads, no tracking, no paywalls. If it helped you learn something useful, you can support future lessons or donate to Doctors Without Borders, which provides emergency medical care in crisis zones worldwide.

🎉

You completed HTML!

You finished all 8 lessons and quizzes. You now know the basics of HTML.