HTML5 daily Practice Figure the application of a new tag

Source: Internet
Author: User

The igure element is a combination of elements that can have a caption (optional). A figure tag is used to represent a piece of separate content on a Web page that is removed from the page without affecting other content on the page. A figure can represent a picture, a chart, or a code sample.

Figure UF a sub-label--figcaption label.

Note: only one figcaption element is allowed in a figure element, and the other elements can be placed indefinitely.


Case 1:
Figure element with no caption:

  1. <! DOCTYPE html>
  2. <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
  3. <TITLE>HTML5 daily Practice Figure the application of a new tag-figure element with no caption </title>
  4. <body>
  5. <figure>
  6. </figure>
  7. </body>
Copy Code

Case 2:
Figure element with caption:

  1. <! DOCTYPE html>
  2. <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
  3. <TITLE>HTML5 daily Practice Figure the application of a new tag-a figure element with a caption </title>
  4. <body>
  5. <figure>
  6. <figcaption>W3Cfuns</figcaption>
  7. </figure>
  8. </body>
Copy Code

Case 3:
Multiple pictures, a figure element of the same caption:

  1. <! DOCTYPE html>
  2. <meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
  3. <TITLE>HTML5 daily Practice Figure the application of a new label-multiple pictures, the same title of the figures element </title>
  4. <body>
  5. <figure>
  6. <figcaption>w3cfuns build the authoritative community for Web front-end development! </figcaption>
  7. </figure>
  8. </body>
Copy Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.