Figures in the Page
Explore how the HTML5 figure and figcaption tags allow you to create self-contained, captioned content related to the main document. Understand their semantic role and how CSS can position figures independently of the main flow, improving page layout and user experience.
We'll cover the following...
We'll cover the following...
In the previous Chapter, you have already met with images and the usage of <img> tag. You may ask yourself, why does HTML5 have another tag for figures?
The reason behind this fact is that figures have another semantic than images. A figure is a self-contained content that is related to the main flow of a document, but it can be ...