Difference between revisions of "Tag (markup language)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(First def.)
 
(Containers, code.)
Line 1: Line 1:
Tags add structure to [[HTML]] documents.
+
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. 
 +
 
 +
<code>
 +
<p>Text inside paragraph.</p>
 +
</code>
 +
 
 +
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:37, 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.

Text inside paragraph.

Elements with two tags serve as containers. Any content between the opening tag and the closing tag is contained by the container element.