HTML <obszar> typ Atrybut
Przykład
Użyj atrybutu type, aby określić typ MIME docelowego adresu URL:
<map name="planetmap">
<area shape="rect" coords="0,0,82,126" alt="Sun"
href="/images/sun.gif" type="image/gif">
</map>
Definicja i użycie
type
Atrybut określa typ mediów internetowych (wcześniej znany jako typ MIME) docelowego adresu URL .
Ten atrybut jest używany tylko wtedy, gdy href
jest ustawiony.
Uwaga: ten atrybut ma charakter wyłącznie doradczy.
Obsługa przeglądarki
Attribute | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Składnia
<area type="media_type">
Wartości atrybutów
Value | Description |
---|---|
media_type | The Internet media type of the linked document. Look at IANA Media Types for a complete list of standard media types. |
❮ Znacznik HTML <area>