Answers for "figure css"

0

how to use figure and caption in html

<!-- Just an image -->
<figure>
  <img
  src="https://developer.mozilla.org/static/img/favicon144.png"
  alt="The beautiful MDN logo.">
</figure>

<!-- Image with a caption -->
<figure>
  <img
  src="https://developer.mozilla.org/static/img/favicon144.png"
  alt="The beautiful MDN logo.">
  <figcaption>MDN Logo</figcaption>
</figure>
Posted by: Guest on December-29-2019
1

html figure

<figure>
  <img src="image-url.com or local-filename.jpg" width="auto" height="auto" alt="figure alt text">
  <figcaption>
	Figure caption <!-- can also use <div>, <p>, etc. tags within <figcaption> -->
  </figcaption>
</figure>
Posted by: Guest on July-16-2020

Browse Popular Code Answers by Language