6.10 Summary
In this chapter, you learned about some essential HTML elements for adding graphics, videos, and other multimedia content. You are now familiar with the following:
-
The img element, which you can use to embed images and graphics.
-
Link-sensitive graphics (image maps), with which you can embed and use hyperlinks within a graphic.
-
How to provide alternative image sources for different viewports using the <picture> container element and the <source> element it contains.
-
How to add vector graphics as a graphic reference or embed them directly into the web page using <svg>.
-
How to draw something on a web page yourself on the fly using the HTML element <canvas> and JavaScript.
-
How to play videos with the HTML element <video> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access