Answers for "what is the difference between a tag and an element?"

5

difference between tag and element

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
Posted by: Guest on January-31-2021

Code answers related to "what is the difference between a tag and an element?"

Browse Popular Code Answers by Language