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>