Difference between revisions of "HTML element"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(etc)
(One Tag, Two Tag)
Line 9: Line 9:
 
== One Tag, Two Tag ==
 
== One Tag, Two Tag ==
  
Some HTML elements have one tag:
+
Some HTML elements require one tag:
  
 
<pre>
 
<pre>
Line 15: Line 15:
 
</pre>
 
</pre>
  
Most HTML elements use two tags: an opening tag, and a closing tag
+
Most HTML elements require two tags: an opening tag, and a closing tag:
  
 
<pre>
 
<pre>

Revision as of 08:30, 30 August 2015

An element is a fundamental unit in HTML.

The HTML language is made up of a set of elements, and rules for using element.

Elements are the basis for tags.

In an HTML document, tags represent elements.

One Tag, Two Tag

Some HTML elements require one tag:

<img src="image.jpg" alt="element with one tag" />

Most HTML elements require two tags: an opening tag, and a closing tag:

<p>Text inside paragraph.</p>

See also

External links