In this article, we will know the HTML Elements, along with understanding the various available elements & their syntax through the examples. An HTML element is the collection of start and end tags with the content inserted in between them.
HTML Element: The HTML element consist of 3 parts:
1) Opening tag: It is used to tell the browser where the content material starts.
2) Closing tag: It is used to tell the browser where the content material ends.
3) Content: It is the actual content material inside the opening and closing tag.
Example :
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
</head>
<body>
<h2>hello</h2>
</body>
</html>