What is the difference between HTML elements and tags?

HTML Tags: HTML tags are the beginning and ending parts of an HTML element. They are eliminated starting from a symbol. Inside the is also written that tag.


<html> </html>, <body> </body>, <br>, <hr> , <img>

HTML element: The content in the middle of an HTML tag is called an HTML element. They have some kind of structure or expression. It usually consists of a start tag, content, and an end tag.


<p> This is paragraph</p>

<h1>Hi this is the answer</h1>

<title>My website</title>

<br> Line break

<hr> Horizontal Line

<b>It is the example of Html element</b>

ElementWith tags
Paragraph<p>This is paragraph</p>
Heading<h1>This is heading</h1>
Title<title>My website</title>
Line break<br>
Horizontal Line<hr>


<!DOCTYPE html>

<h1>This is The DevOpsSchool</h1>
<p>DevOpsSchool is one of the largest DevOps Training provider for beginners.</p>



Tagged : / / / /