AMZ DIGICOM

Digital Communication

AMZ DIGICOM

Digital Communication

HTML Image Map: definition, explanation and examples

PARTAGEZ

An HTML Image Map allows you to make different areas of an image or video clickable, directing users to internal or external links. These interactive areas are defined by specifying precise coordinates, which are then associated with the corresponding URLs.

What is an HTML Image Map?

HTML Image Maps (“image map” or “clickable map” in French) are interactive graphics that improve the usability of a site by allowing you toadd multiple clickable links to an image or video in an HTML document. These clickable areas can redirect to subpages, internal or external URLs, or allow file downloads. When users click on these areas, the corresponding actions are performed or related content is displayed.

The HTML tag (in English tag)

is used to create image maps. The HTML tag is used to integrate the created Image Map.

If you do not want to create your HTML Image Map yourself, you can use generators. With these online tools, you simply upload the desired image and then set the desired link targets in the desired areas.

Advice

Would you like to know more about the functions and possibilities of using HTML ? Our HTML tutorial for beginners gives you a quick and easy introduction to the markup language.

What can an HTML Image Map be used for?

An Image Map can be integrated into any HTML documentas soon as the reference zones are defined. The great strength of Image Maps lies in their ability to link several destinations within the same image or video. Here are some examples of application of HTML Image Maps:

  • Geographic maps with clickable areas for regions, cities, company branches or gas stations
  • Recipe images providing additional information about the ingredients depicted
  • Advertising banners with links to different products, categories or services
  • Additional information or advertisements inserted into videos
  • Image Map Websites with Multiple Navigation Elements
  • Displaying game modes, functions or levels in online games

Domain name

Your domain in one click

  • 1 Wildcard SSL certificate per contract
  • Included Domain Connect feature for simplified DNS setup

To create an Image Map, the HTML element

is used. The attribute name must be used for the Image Map to be referenced. To simplify, the clickable card name allows you to anchor, link and address the desired target in a graphic or video. Here are others instructions on coordinates of linked reference surfaces.

The Image Map can be placed wherever you want in an HTML document. To do this, you define zones and coordinates (coords) with which you concretize the position, size and shape of the deflection surface. Areas can be placed as rectangles, polygons, or circles in a chart. The coordinates you use depend on the shape of the reference surface.

With the HTML attribute

you can again define individual areas of the map map. To use an Image Map, you need at least one attribute area. To define the properties of the Image Map and its individual reference areas, the following HTML attributes can be used:

  • shape : the attribute shape allows you to define the shapes of clickable areas in a chart. We can use rect for rectangles, circle for circles, or poly for polygons. The syntax for rect East rect = x1,y1,x2,y2Or x1 And y1 correspond to the coordinates of the upper left corner, and x2 And y2 in the lower right corner. The syntax for circle East circle = xc,yc,radiusand for polygons, poly = x1,y1,x2,y2,x3,y3 ....
  • coords : the attribute coords specifies the coordinates that delimit a clickable area. These coordinates are defined in pixels, often using a graphics editor.
  • href : the attribute href allows you to link the clickable area to a URL or an internal or external address.
  • alt : the attribute alt provides alternative text in case of problems loading the Image Map, useful for text-based browsers or for accessibility.
  • title : the attribute title displays a short informative text when the user hovers over a clickable area of ​​the image.
  • img : the tag img is used to insert and display an image in an HTML document.

Web Hosting

State-of-the-art web hosting at the best price

  • 3x faster, 60% savings
  • High availability >99.99%
  • Only at IONOS: up to 500 GB included

Once the Image Map has been finalized, it can be embedded into a website using the HTML tag to the desired location. To embed the desired Image Map and finally make it available on the website, additionally use the element

already mentioned. Follow the following example:



    Beach
    Mer
    Ciel

html

For the beach image in this example, three clickable areas have been defined in this case: the beach, the sea and the sky. Anyone who clicks in the areas is automatically redirected to the corresponding landing pages, which then open in a new window.

Image: Image Map: example
In the example, the three areas of the Map HTML image have been defined using attributes.

Télécharger notre livre blanc

Comment construire une stratégie de marketing digital ?

Le guide indispensable pour promouvoir votre marque en ligne

En savoir plus

Web Marketing

ICS file: open and import calendar data

With the ICS format, you can import, export, share or publish appointments and events in digital calendars. With its worldwide usage, it is supported by

Web Marketing

What is reinforcement learning?

Reinforcement learning is a subfield of machine learning in which an agent learns, using rewards and penalties, to make optimal decisions in a given environment.

Souhaitez vous Booster votre Business?

écrivez-nous et restez en contact