DL and DT,DD, and table Tr,th,td most clearly analyzed

Source: Internet
Author: User
1, definition:
<dl> <dt> <dd> is a combination of labels, using the DT DD outermost must use the DL package, this combination tag we also called the Table label, and table table similar to the combination of labels, so the name we also called DL table.
<dl><dt></dt><dd></dd></dl> is a common title + list-type label. If there is no initial CSS style for the DL DT DD tag, the default DD list content is bound to be indented.
2, Usage:

<dl>
<dt> List title </dt>
<dd> List Contents </dd>
<dd> List Contents </dd>
...
</dl>
First DT and DD are placed in the DL tag, and the label DT and DD are at the same level as the DL. That is, DT can not be placed in the DD, DD can not be placed inside dt. Under DL, DT and DD are in the same sibling label. DD tags can be several. At the same time, you cannot add DL to use DT label or DD label alone.

We practice using DL DT DD tags in most places, usually with headings, while the headings correspond to several lists that are simple (column headings + corresponding title lists) and headings corresponding to the contents below. <dl>
<dt> List title </dt>
<dd> List Contents </dd>
<dd> List Contents </dd>
...
</dl>
Syntax Explanation:
First DT and DD are placed in the DL tag, and the label DT and DD are at the same level as the DL. That is, DT can not be placed in the DD, DD can not be placed inside dt. Under DL, DT and DD are in the same sibling label. DD tags can be several. At the same time, you cannot add DL to use DT label or DD label alone.

DL and DT,DD, and table Tr,th,td most clearly analyzed

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.