+ 2
HTML
What is difference between element and tag?
3 Answers
+ 2
HTML tag is just opening or closing entity. For example:
<p> and </p> are called HTML tags
HTML element encompasses opening tag, closing tag, content (optional for content-less tags) Eg:
<p>This is the content</p>Â : This complete thing is called a HTML element
+ 2
Hereâs a simple version of these great replies: if itâs in these: < > then itâs a tag. The whole is an element.