Headings and paragraphs form the backbone of the content on your webpage. They help structure the information, making it easier for users to navigate and read.
HTML offers six levels of headings, from <h1>
to <h6>
. The most important heading, usually used for the title of the page, is <h1>
. Subsequent levels of headings (e.g., <h2>
, <h3>
) are used for sub-headings and are typically smaller in size.
<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Smaller Subheading</h3>
The <p>
tag is used to define paragraphs in HTML. Paragraphs are blocks of text, and HTML automatically adds some space before and after each paragraph to visually separate them.
<p>This is a paragraph of text.</p>
<p>This is another paragraph.</p>
Create an HTML document with a main heading, subheadings, and several paragraphs. Try to format the page as if it were a blog post or an article.