Tags, Elements, Attributes
When was the last time you heard someone refer to an "ALT tag" in an image? The correct terminology for this would be the "ALT attribute" in an "image element". The following explains the terminology.
Tags
The actual "tag" in HTML is one such as:
<p> or <div>
These markings in HTML or XHTML are the actual "tags" in the document.
Elements
The element is the tag with the content - or in other words, the content between the open and close tag.
<p> The element is the tag with the content. </p>
•
|