Difference between revisions of "Tag (HTML)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) m (Karl Jones moved page Tag to Tag (HTML)) |
Karl Jones (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | A '''tag''' represents an element in [[HTML | + | A '''tag''' represents an element in [[HTML elements]] in [[HTML]] documents. |
== One Tag, Two Tag == | == One Tag, Two Tag == |
Revision as of 11:46, 25 April 2016
A tag represents an element in HTML elements in HTML documents.
One Tag, Two Tag
Some elements have one tag:
<img src="image.jpg" alt="element with one tag" />
Most elements use two tags: an opening tag, and a closing tag:
<p>Text inside paragraph.</p>
Elements with two tags serve as containers. Any content between the opening tag and the closing tag is contained by the container element.