List of HTML Tags - A

A

<A>  <Abbr>  <Acronym>  <Address>  <Applet>  <Area> 

<a>...</a> Supported by: NN: 2, 3, 4; IE 2, 3, 4, 5; HTML4; WebTV; Opera3

<A> stands for Anchor, which is used to link to another document, and to give a name to a portion of the document so a link can be made to that portion (as in "Back to top").

<a href=url>...</a> specifies the target destination. For example, <a href="Index.htm">...</a> takes you to the home page. New in HTML 4.0: accesskey=character Assign an access (shortcut) key command to the link. For example, clicking on alt + 'n' will open up my frames sampler.

<a name=text>...</a> identifies a portion of the document. For example, the beginning of the section for letter B has the following code in front of it, so that when you click on the 'B' link in the alphabet above, you can be taken to the start of tags beginning with the letter 'B': <a name="B">B</a>

<a title=text>...</a> specifies a title for the target document.

<a target=name>...</a> specifies the name of the window or frame in which the target document is to be displayed. This is not supported by IE2 or earlier, or WebTV. Standard target names are:

_blank
Opens a new window without a name
_self
Loads the document into the current frame or window. (Default)
_parent
Loads the document into the parent frame
_top
Loads the document into the top window, replacing the current frames.
I give examples of the use of targets in my frames sampler.

<abbr>...</abbr> Supported by: HTML4

<abbr> denotes an abbreviation. It has no effect on its own, but can be used with a style sheet. The abbr. can be given a title=text attribute, which will contain the unabbreviated text. This may be useful for non-visual browsers and search engines. For example: <abbr title="Abbreviation">Abbr.</abbr>.

<acronym>...</acronym> Supported by: HTML4

<acronym> denotes an acronym. It has no effect on its own, but can be used with a style sheet. The acronym can be given a title=text attribute, which will contain the unabbreviated text. This may be useful for non-visual browsers and search engines. For example: <acronym title="Three-letter acronym">TLA.</abbr>.

<address>...</address> Supported by: NN: 2, 3, 4; IE 2, 3, 4, 5; HTML4; WebTV; Opera3

<address> generally appears at the top or bottom of a document, giving the author or owner of the document. For example:

This site written by Sue Nethercott
.

<applet>...</applet> Supported by: NN: 2, 3, 4; IE 3, 4, 5; HTML4 (deprecated)

<applet> is used to put a java applet on a web page. <object> is preferred in HTML4.

<applet> can have several attributes:

align=center Aligns the applet to the center and text can wrap around it.

align=left Aligns the applet to the left and text can wrap around it.

align=right Aligns the applet to the right and text can wrap around it.

alt=text Provides the alternative text for when the applet cannot be displayed.

code=class It is mandatory to specify the class name of the code to be executed.

codebase=url The URL from which the code is to be retrieved.

height=number The height of the applet window in pixels.

hspace=number The number of pixels space to be kept clear to the right and left of the applet window.

name=text If you want to refer to the applet from elsewhere on the page, specify a name for it here.

vspace=number The number of pixels space to be kept clear above and below the applet window.

width=number The width of the applet window in pixels.

<area>...</area> Supported by: NN: 2, 3, 4; IE 2, 3, 4, 5; HTML4; WebTV; Opera3

<area> defines a specific clickable area of a client-side image map. It is used within the <map> tag. The three shapes catered for are circle, and rectangle, and polygon. <area> can take 4 attributes: coords, href, nohref, and shape.

The coords attribute is a comma-separated list of pixel coordinates that define a "hot" area of an image map. The syntax and values taken by coords depend upon the shape.

shape=rect or shape=rectangle defines a rectangular clickable area. The coordinates to specify are in the form x1, y1, x2, y2, where x1, y1 is the top left hand corner, and x2, y2, the bottom right corner.

shape=circ or shape=circle defines a circular clickable area. The coordinates to specify are in the form x, y, r, where x, y is the centre point of the circle, and r, the radius.

shape=poly or shape=polygon defines any other clickable area. The coordinates to specify are in the form x1, y1, x2, y2, x3, y3, ...where the pairs of coordinates follow the path of the outline of the area. A straight line is inferred between each pair of points.

The href attribute specifies a url for a specific area.

The nohref attribute defines an area of the map which is sensitive to the mouse but where no action is taken if the user clicks on it..

Area example

Back to top     Home     Serious Stuff

© 2001. Copyright Sue Nethercott.