A TIP#3

Using Figure and Figcaption in HTML

Below is an example of how to use the <figure> and <figcaption> elements to properly structure images and their captions:

Description of the image
This is the caption for the image.

Using these elements enhances accessibility and provides better context for your images!


the code



  HTML Figure Example
  
<figure>
<img src="example.jpg" alt="Description of the image" width=400 />
<figcaption> This is the caption for the image. </figcaption>
</figure>

Comments

Popular posts from this blog

A tip for html