XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / figure

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

figure

HTML 5

<figure> ... </figure>

Defines a section with self-contained content referenced from the main content. Examples include illustrations, code samples, diagrams and poems. The element figure can contain, in any order, a dd element for the illustration, code, etc., and a dt element for the caption or title. If no dt element is defined, the figure has no caption.

Notes

HTML 5 only.

Start/end tag

Required/required

Attributes

Global HTML 5 attributes

Examples

<figure>
  <dd><img src="tacocat.jpg" alt="Eine Katze, die Tacos isst."></dd>
</figure>

<figure>
  <dt>Beispiel für eine CSS-Regel</dt>
  <dd>
    <pre>
  body {
    background-color: #000;
    color: red;
 }
    </pre>
  </dd>
</figure>

 

> back to the alphabetical list of elements

   

 

 

 

back to top