HTML Tags Presentation
HTML Tags Presentation
HTML Tags Presentation
<a> (Link)
<img> (Image)
<picture> (Image)
<map> (Image Map)
<a> Tag
The <a> tag defines a hyperlink, which is used to link from one page to another.
The most important attribute of the <a> element is the href attribute, which
indicates the link's destination.
Note: Also, always specify the width and height of an image. If width and height are
not specified, the page might flicker while the image loads.
Attributes
alt text ( Alternate text for image)
crossorigin anonymous use-credentials (allow image from third party web sites)
height pixels (heigh of the image)
ismap ismap (Specifies an image as a server-side image map)
usemap #mapname (an image as a client-side image map)
loading eager lazy (should load an image immediately or to defer loading of
images until some conditions are met)
longdesc URL (a URL to a detailed description of an image)
sizes sizes (image sizes for different page layouts)
src URL (Specifies the path to the image)
srcset URL-list (a list of image files to use in different situations(browsers))
width pixels (Specifies the width of an image)
<picture> Tag
The <picture> tag gives web developers more flexibility in specifying image resources.
The most common use of the <picture> element will be for art direction in responsive designs.
Instead of having one image that is scaled up or down based on the viewport width, multiple
images can be designed to more nicely fill the browser viewport.
The <picture> element contains two tags: one or more <source> tags and one <img> tag
<map> Tag
The <map> tag is used to define an image map. An image map is an image with clickable areas.
The required name attribute of the <map> element is associated with the <img>'s usemap attribute
and creates a relationship between the image and the map.
The <map> element contains a number of <area> elements, that defines the clickable areas
in the image map.
Attribute
Name mapname Required. Specifies the name of the image map
END
Any Question…