Publish in HTML Tutorial el 24/05/2025 14:28
The <figure> element represents self-contained content, often with a caption (<figcaption>), and is typically referenced as a single unit from the main flow of the document. It can contain images, diagrams, photos, code snippets, or other content that supports the main content but isn't essential for understanding it.
Key characteristics of <figure>:
The most common use of <figure> is to wrap an image with a caption.
<figure> can also contain code blocks with descriptions.
A single <figure> can contain multiple related images.
This example shows how to dynamically change figure content with JavaScript.
This example demonstrates styling a figure with CSS for responsive design.
The <figure> element is supported in all modern browsers, including Chrome, Firefox, Safari, Edge, and Opera. It's also supported in Internet Explorer 9 and later.
The <style> HTML element contains style information for a document, or part of a document. ...
The <strong> element is used to indicate that its content has strong importance, seriousnes...
The <span> element is an inline container used to mark up a part of a text or document. Unl...
The <source> element is used to specify multiple media resources for media elements like &l...
The <small> element is used to represent side-comments and small print, typically for discl...
HTML <section> Element: The Complete Guide The <section> element is a semantic HTML ...