161k views
5 votes
What is the difference between an html tag and an html element ​

2 Answers

4 votes

Step-by-step explanation:

An HTML element is the collection of start tag, its attributes, an end tag and everything in between. On the other hand an HTML tag (either opening or closing) is used to mark the start or end of an element.

User Taha Kirmani
by
5.4k points
5 votes

Answer:

In technical terms, the HTML element happens to the collectible of a start tag, an end tag, attributes of the tag and everything that comes in between the start tag and the end tag. And whereas the HTML tag happens to be the opening or the closing, that is used for marking the beginning of the end of an element.

Step-by-step explanation:

Please check the answer section.

User ManpreetSingh
by
5.4k points