HTML and CSS Reference
In-Depth Information
Name
area
Synopsis
<area>
(XHTML:
<area/>
or
<area />
)
The
area
element is used within the
map
element of a client-side image map to define a spe-
cific clickable (“hot”) area.
Usage
Categories:
Flow content, phrasing content
Permitted contexts:
Where phrasing content is expected, but must be contained in a
map
element
Permitted content:
Empty
Start/end tags:
This is a
void
(empty) element, meaning it has only a start tag and may not have any con-
tents. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a
trailing slash (
<area/>
or
<area />
).
Attributes
HTML5 Global Attributes
alt="
text
text
"
Required
. Specifies a short description of the image that is displayed when the image file
is not available.