what is the usage of HTML5 figure with img

后端 未结 3 1211
离开以前
离开以前 2021-02-01 01:57

Is there any specific advantage/usage of using HTML5

over ?

I think

is useless without , isn\'
3条回答
  •  醉梦人生
    2021-02-01 02:29

    HTML5 figure is used whenever you use img, video tag with caption (figcaption) on it

    If you have a number of related images (or other content) with caption text, you can use nested figure elements to associate both a group caption and an individual caption to each instance using the figcaption element.

    The castle has one tower, and a tall wall around it.
    Charcoal on wood. Anonymous, circa 1423.

    Here are some examples

提交回复
热议问题