Image Maps
Image Maps
• Later came browsers with support for colors, fonts, images, and
multimedia.
The <source> element allows to specify alternative video files which the browser
may choose from. The browser will use the first recognized format.
HTML Video
• Video attributes:
• To add video controls, like play, pause, and volume, use the controls
attribute.
• To let your video start playing automatically but muted, use autoplay +
muted attribute.
• To specify that the video file will start over again, every time when it
is completed use Loop attribute.
.
HTML Audio
• The <source> element allows you to specify alternative audio files which the
browser may choose from. The browser will use the first recognized format.
HTML Audio
• Audio attributes:
• To add audio controls, like play, pause, and volume, use the controls
attribute.
• To let your audio start playing automatically but muted, use autoplay +
muted attribute.
• To specify that the audio file will start over again, every time when it
is completed use Loop attribute.
HTML Image Maps
https://www.w3schools.com/html/html_images_imagemap.asp
.
• The image is inserted using the <img> tag. The only difference from
other images is that you must add a usemap attribute.
• The usemap value starts with a hash tag # followed by the name of the
image map, and is used to create a relationship between the image and
the image map
<img src="workplace.jpg" alt="Workplace" usemap="#workmap">
HTML Image Maps
• The <map> element is used to create an image map, and is linked to
the image by using the required name attribute.
The coords for shape = “circle”, first locate the coordinates of the center
of the circle,
337,300 Then specify the radius of the circle, 44 pixels.
The coords for shape= “poly”, contains several coordinate points, which
creates a shape formed with straight lines (a polygon).