+ 2
Difference between element and tag
difference between element and tag
3 Answers
+ 4
Sometimes these words are used interchangablly, but they are actually different. An element is a tag with a content but tag is just a notation like <div> or <img> which can contain or format a content. You can imagin a tag as a box and an element as a box filled with some objects.
+ 2
I think the only difference is that element is a tag which is generally used inside another tag.
0
A tag is coded in <p> form. An element is one or two tags with all the content between them so <p>Element</p> is an element.