I've noticed that most people use the words "HTML tag" and "HTML element" interchangeably.
But what is the difference between them?
I think the tag is in the source code and the element is the tag in the DOM that is processed (by the browser). am I wrong?
Source: 456bereastreet.com: HTML Tags, Elements and Attributes
HTML tags simply open or close entities. For example:
<p>
and</p>
are called HTML tagsHTML elements include start tags, end tags, and content (no content tag is optional) For example:
<p>This is the content</p>
: This complete thing is called an HTML element