HTML DL DT DD tag Element

Source: Internet
Author: User

DL DT DD recognition and DL DT DD use method

<dl> tags are used to define list type labels.

DL DT DD Directory
    1. DL DT DD Introduction
    2. Structure syntax
    3. DL DT DD Case
    4. DL DT DD Summary
First, DL DT DD know- TOP

HTML <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 name we also called DL table (extended reading: Table TR TD and Table tr th form layout).

<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. (extended reading: Ul Li, ol Li, Li list)

Second, DL DT DD list label Syntax- TOP

<dl> <dt> list title </dt> <dd> list content </dd> <dd> list content </dd> ... </dl>

syntax Explanation: first DT and DD are placed in the DL tag, 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.

The title and title corresponding list effect demo code is as follows:

  1. <html>
  2. <body>
  3. <H1> A definition list:</H1>
  4. <dl>
  5. <DT>css website </dt>
  6. <dd> URL is www.divcss5.com</dd>
  7. <DT>div CSS website </dt>
  8. <dd> URL is www.divcss5.com</dd>
  9. <DT>div+css website </dt>
  10. <dd> URL is www.divcss5.com</dd>
  11. </dl>
  12. </body>
  13. </html>

Demonstrate

extension and promotion DL DT DD is a combination label label standard usage, code as follows

  1. <dl>
  2. <DT> Title 1</dt>
  3. <dd> List 1</dd>
  4. <dd> List 2</dd>
  5. </dl>

At the same time can be placed in the DD <ul> tag use.

Third, the HTML DL DT DD Application Example Case- TOP

1. HTML code snippet: <dl> <dt> Welcome to divcss5</dt> <dd> here, HTML tutorial </dd> <dd> here, CSS module </DD > <dd> here, CSS tutorials </dd> </dl>

2. DL DT DD Case

Above is the HTML DL DT DD List Tag example diagram

Four DL DT dd Tag Summary- TOP

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. In the use of the time we can concise HTML code case, learn to use the DL DT DD, understand and master the label structure syntax.

In the future development of DIV+CSS appropriate use of DL DT DD label You will appreciate the convenience.

HTML DL DT DD tag Element

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.