What does the attribute of area mean?

云罗郡主
Release: 2019-03-11 16:05:59
Original
4617 people have browsed it

What does the attribute of area mean?

The area tag defines the area in the image map (Note: Image mapping refers to an image with a clickable area). The area element is always nested in the map tag middle. [Recommended tutorial:HTML tutorial]

Definition and usage

tag defines the area in the image map (Note: Image map refers to images with clickable areas).

area elements are always nested withintags.

Note: The usemap attribute in theWhat does the attribute of area mean?tag is associated with the name attribute of the map element, creating a link between the image and the map.

Differences between HTML and XHTML

In HTML,does not have a closing tag.

In XHTML,must be closed properly.

Tips and Notes:

Note: The usemap attribute inWhat does the attribute of area mean?can reference the id or name attribute in(determined by the browser) , so we need to add two attributes, id and name, toat the same time.

Required properties

Properties Value Description
alt #text Define the replacement text for this area.

Optional properties

What does the attribute of area mean?

Global properties

tag supports global attributes in HTML.

Event Attributes

Thetag supports event attributes in HTML.


The above is the detailed content of What does the attribute of area mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn