What is caption in HTML?

Source: Internet
Author: User

Define the table title and briefly describe the table.

Note:

The caption element should be a sub-object of the table element.

Table objects and their associated elements have an independent table object model. This mode uses a different method than the conventional object model. For more information about the table object model, see how to dynamically generate a table.

This element is available in HTML of Internet Explorer 3.0 and later versions, and in scripts of Internet Explorer 4.0 and later versions. 1. It is an embedded element; 2. This element needs to be closed.

Code:

<HTML>

<Body>

<H4>

Code running result

This table has the title:

</H4>

<Table border = "6">

<Caption> table title </caption>

<Tr>

<TD> 100 </TD>

<TD> 200 </TD>

<TD> 300 </TD>

</Tr>

<Tr>

<TD> 400 </TD>

<TD> 500 </TD>

<TD> 600 </TD>

</Tr>

</Table>

</Body>

</Html>

 

 

 

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.