Difference between revisions of "Tag (HTML)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Moved here from "Tags" page, TODO reroute "Tags" here.)
 
Line 14: Line 14:
  
 
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.
 +
 +
(TO DO: more info, cross-ref.)
 +
 +
== See also ==
 +
 +
* HTML
 +
 +
== External links ==
 +
 +
(TO DO:  links.)

Revision as of 12:40, 8 September 2015

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.

(TO DO: more info, cross-ref.)

See also

  • HTML

External links

(TO DO: links.)