HTML (HyperText Markup Language)

HTML uses a variety of predefined tags to layout text, images, forms, links e.t.c on a web page. Within the document tags are differentiated from text by placing them in brackets <>. Most tags come in pairs: a 'begin' tag and an 'end' tag. By enclosing a section of the page within a pair of tags, what ever is positioned between them will have the tags applied to it. The simplest example of this is the <HTML> (begin tag) and </HTML> (end tag):

<HTML>
.
.
.
</HTML>

These are positioned at the top and bottom of every HTML page, denoting that everything in between is HTML.

A selection of the more commonly used tags are listed below:

Tag Description
<HEAD> The section enclosed by the <HEAD></HEAD> tags contains information about the document that is not visible on the page.
<TITLE> Situated in the HEAD section, this tag is used to define the title of the document.
<BODY> The section enclosed by the <BODY></BODY> tags contains the visible content of the page.
<P> This tag is used to define a paragraph within the document.
<B> This tag is used to make a section of text bold.
<U> This tag is to make a section of text underlined.

Below is an example of an HTML page. Modify the code and click preview to view the changes:



»