An HTML document consists of various elements structured to display content effectively on the web. The fundamental building blocks include:
- Paragraphs: Enclosed within
<p>tags, paragraphs help in separating blocks of text for readability. - Headings: Defined from
<h1>to<h6>, headings represent different levels of section titles. - Lists: There are two main types of lists: unordered lists with
<ul>and ordered lists with<ol>, both containing<li>to denote list items. - Strong Emphasis: The
<strong>tag is used to highlight important text semantically and visually.
For example, a typical structure might include a heading followed by paragraphs and a list, as shown below:
<h2>Sample Heading</h2>
<p>This is a paragraph explaining the main idea.</p>
<ul>
<li>First item</li>
<li>Second item</li>
</ul>
More Stories
Inside the Untold Mental Health Battle of Top Indian Junior Badminton Star Orijit Chaliha