İbrahim Halil Oğlakcı
4 min readJun 28, 2023

Essential HTML Tags: A Guide to Commonly Used Tags and Examples

When it comes to creating web pages, HTML plays a crucial role in structuring the content and defining its presentation. Understanding and utilizing essential HTML tags is vital for building well-structured and semantically meaningful web pages. In this article, we will explore some commonly used HTML tags along with their usage examples. Let’s dive in!

1. <h1> – <h6> (Heading Tags):

Heading tags are used to define headings or subheadings on a web page. The <h1> tag represents the highest level of heading, while <h6> represents the lowest level. Here’s an example of using heading tags:

<h1>Welcome to My Website!</h1>
<h2>About Me</h2>
<h3>Education</h3>

2. <p> (Paragraph Tag):

The <p> tag is used to define a paragraph of text. It is commonly used to structure and organize textual content on a web page. Here’s an example:

<p>Lorem ipsum dolor sit amet, 
consectetur adipiscing elit.
Fusce auctor consectetur quam in tempus.</p>

3. <a> (Anchor Tag):

The <a> tag is used to create hyperlinks, allowing users to navigate between different web pages. Here’s an example of creating a link:

<a href="https://www.example.com">
Visit Example Website</a>

4. <img> (Image Tag):

The <img> tag is used to embed images into a web page. It requires the src attribute to specify the image source. Here’s an example:

<img src="image.jpg" alt="Description of the image">

5. <ul> and <li> (Unordered List and List Item Tags):

The <ul> and <li> tags are used to create unordered lists. The <ul> tag represents the list container, while <li> tags define individual list items. Here’s an example:

<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>

6. <table> and <tr> (Table and Table Row Tags):

The <table> tag is used to create a table, and <tr> tags define table rows. Additional tags like <th> (table header) and <td> (table data) are used to structure the table further. Here’s an example:

<table>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
<tr>
<td>John Doe</td>
<td>25</td>
</tr>
</table>

7. <div> (Division Tag):

The <div> tag is a versatile container used to group and organize other HTML elements. It provides a way to apply styles and manipulate content as a cohesive unit. Here’s an example:

<div class="container">
<h3>Section Title</h3>
<p>Content goes here...</p>
</div>

8. <form> and <input> (Form and Input Tags):

The <form> tag is used to create interactive forms on a web page, and <input> tags define form input fields such as text fields, checkboxes, radio buttons, and more. Here’s an example of a simple form:

<form action="/submit" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<br>
<input type="submit" value="Submit">
</form>

9. <header> and <footer> (Header and Footer Tags):

The <header> and <footer> tags are used to define the header and footer sections of a web page, respectively. They often contain branding elements, navigation menus, copyright information, and more. Here’s an example:

<header>
<h1>My Website</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="/contact">Contact</a></li>
</ul>
</nav>
</header>

<footer>
<p>&copy; 2023 created by İbrahim Oğlakcı. All rights reserved.</p>
</footer>

10. <span> (Span Tag):

The <span> tag is an inline element used for styling specific parts of a text or grouping inline elements together. It is often styled using CSS or used with JavaScript to manipulate specific text. Here’s an example.

<p>Welcome to our <span class="highlight">website</span>. Explore and discover amazing content.</p>

HTML tags form the foundation of web page structure and play a vital role in defining the content and its presentation. In this article, we covered some essential HTML tags, including heading tags, paragraph tags, anchor tags, image tags, list tags, and table tags. By utilizing these tags effectively, you can create well-structured and visually appealing web pages.

Remember to experiment and explore other HTML tags as well to expand your HTML knowledge and create dynamic web experiences.