I'm very new to HTML. I'm following an online tutorial. I need to put some images on the page and I need to enclose these images in <figure> tags. The tutorial doesn't explain why I need to do this. In fact, it gives no information about the <figure> tag at all. So, I googled it and this is what I found:
The HTML (Figure With Optional Caption) element represents self-contained content, potentially with an optional caption, which is specified using the (
<figcaption>) element. The figure, its caption, and its contents are referenced as a single unit.
Emphasis mine.
This explanation doesn't help me. Please could someone explain what is meant by 'self-contained content'? Isn't all content essentially 'self-contained'? If it wasn't then any adjustment to any element would affect every other element. Is 'self-contained content' some kind of reserved term with a special meaning in web design? I just don't understand what it means for content to be 'self-contained' in this context. As a consequence, I can't understand the point of the <figure></figure> tags.
Many thanks.