HTML Elements/Tags Tutorial
What are HTML Elements?
HTML elements
are the building blocks of an HTML document. They are used to define the structure and content of a web page. Each HTML element is enclosed in angle brackets and consists of a start tag, content, and an end tag.
Example:
<p>This is a paragraph element</p>
Common HTML Elements:
Below are some common HTML elements along with their examples:
<p> | Defines a paragraph |
<h1> - <h6> | Defines headings |
<a> | Defines a hyperlink |
<img> | Defines an image |
<ul> <li> | Defines an unordered list and list items |
<ol> <li> | Defines an ordered list and list items |
Example:
<h1>Welcome to our website</h1>
<a href="https://www.example.com">Click here</a>
<img src="image.jpg" alt="Image">
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
These are just a few examples of common HTML elements. There are many more elements that you can use to create and design your web pages.