Difference between revisions of "Tag (markup language)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (Containers, code.) |
Karl Jones (Talk | contribs) (pre) |
||
Line 5: | Line 5: | ||
* Some elements have one tag | * Some elements have one tag | ||
− | <img src="image.jpg" alt="element with one tag" /> | + | <pre><img src="image.jpg" alt="element with one tag" /></pre> |
* Most elements use two tags: an opening tag, and a closing tag. | * Most elements use two tags: an opening tag, and a closing tag. | ||
− | < | + | <pre> |
<p>Text inside paragraph.</p> | <p>Text inside paragraph.</p> | ||
− | </ | + | </pre> |
Elements with two tags serve as containers. Any content between the opening tag and the closing tag is contained by the container element. | Elements with two tags serve as containers. Any content between the opening tag and the closing tag is contained by the container element. |
Revision as of 08:38, 8 May 2015
Tags representing 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.