Tag (HTML)

From Wiki @ Karl Jones dot com
Revision as of 09:01, 8 May 2015 by Karl Jones (Talk | contribs) (Moved here from "Tags" page, TODO reroute "Tags" here.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A tag represents an element in 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.