HTML Elements with their Examples

All html elements start with a tag and ends with a forward slash.

Example: <h1>your content </h1>

<p>My first ever paragraph for website designing</p>

What is Nested Elements in HTML?

Elements can be arranged inside other elements. This is called nested structure.

Example:

<!DOCTYPE html>
<html>
<body>

<h1>Be a website designer & learn HTML</h1>
<p>Hire website designers</p>

</body>
</html>

You can run this code using any HTML editor and it will show elements in browser. All visible content to be posted within the <body> tag.

This must be noted that all HTML tags are not case sensitive so you can write whichever way you want to. Many tags of HTML have attributes that are also to be used for different functionalities. For more information about attributes, read our next article.