Framify

Tag: <address>

<address> Syntax

Syntax Diagram for <address>
Opening Tag Content Closing Tag
<address> text </address>

<address> Description

The <address>. . . </address> tags define the text that occurs between them to be an address, separated from the surrounding text by linebreaks. This tag is an example of "logical markup," as opposed to "physical markup." Logical markup defines what text is, rather than how it looks (as physical markup does). It is likely, though not guaranteed, that the "<address>" tags will cause text that occurs between them to be displayed in italic (similar to the physical markup "<i>").

The advantage to logical markup is that, regardless of how the affected text appears, it is always considered to be what the markup says it is. For example, an address is always an address, regardless of the font that any particular browser uses to represent it. The disadvantage to logical markup is that you cannot be sure how the text will appear (which may be important).

Conversely, the advantage to physical markup is that you can be sure of what the text will look like: when you want a typewriter font for a piece of text, you'll get typewriter font. The disadvantage to physical markup is that you may not be able to tell, just by looking at the font, what the text is supposed to represent (which may be important).

<address> Example

This markup: Send your comments to Joe Schmoe at <address>Schmoe@JoeCo.com</address> and we'll respond as soon as possible. . . .causes the following to be displayed:
Send your comments to Joe Schmoe at
Schmoe@JoeCo.com
and we'll respond as soon as possible.

Last Modified: