0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>In the selfie gallery, each small image preview refers to a separate “photo page”. This photo page contains a full-sized image and a description. It is a fairly stand-alone element, and later we will be able to insert it on any other page of the blog. How can we properly mark up such “pages”?</p>
1
<p>In the selfie gallery, each small image preview refers to a separate “photo page”. This photo page contains a full-sized image and a description. It is a fairly stand-alone element, and later we will be able to insert it on any other page of the blog. How can we properly mark up such “pages”?</p>
2
<p>The <figure> tag is perfectly suited for this. This tag is suitable for any illustrative or demonstrative material that can be added to the content of the document. These materials can be graphs, images, code examples, tables, and so on.</p>
2
<p>The <figure> tag is perfectly suited for this. This tag is suitable for any illustrative or demonstrative material that can be added to the content of the document. These materials can be graphs, images, code examples, tables, and so on.</p>
3
<p>Usually, this material is accompanied by an explanatory comment or “caption”. Another tag, <figcaption>, is intended to be used to mark up this comment. This is placed as the first or last element inside <figure>. For example:</p>
3
<p>Usually, this material is accompanied by an explanatory comment or “caption”. Another tag, <figcaption>, is intended to be used to mark up this comment. This is placed as the first or last element inside <figure>. For example:</p>
4
<figure> Graph, image, diagram or code <figcaption>Caption for the content</figcaption> </figure><p>Let’s mark up the photo in our gallery using <figure>.</p>
4
<figure> Graph, image, diagram or code <figcaption>Caption for the content</figcaption> </figure><p>Let’s mark up the photo in our gallery using <figure>.</p>
5
<p>By default, the figure tag uses indents, so we added styles for figure and figcaption, which can be viewed in the tab style.css.</p>
5
<p>By default, the figure tag uses indents, so we added styles for figure and figcaption, which can be viewed in the tab style.css.</p>