HTML

[HTML] Tags that wrap HTML/figure, figcaption/image, etc. and create captions

OOQ 2022. 8. 22. 10:34
728x90
SMALL

#HTML

#figure

#figcaption

figure, figcaption

  • Figures are tags that wrap pictures, images, diagrams, etc.
  • figcaption creates a caption for the figure element. A child element of the figure element, placed at the very beginning or the very end.

example

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>HTML Reference | figcaption</title>
  </head>
  <body>
    <p>Aenean nec mollis nulla. Phasellus lacinia tempus mauris eu laoreet.</p>
    <figure>
      <figcaption>First Figure</figcaption>
      <img src="images/img-02.png">
    </figure>
    <p>Aenean nec mollis nulla. Phasellus lacinia tempus mauris eu laoreet.</p>
    <figure>
      <img src="images/img-02.png">
      <figcaption>Second Figure</figcaption>
    </figure>
  </body>
</html>
728x90
LIST