DL DT DD recognition and DL DT DD use method
<dl> tags are used to define list type labels.
-
-
DL DT DD Directory
-
- DL DT DD Introduction
- Structure syntax
- DL DT DD Case
- 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:
- <html>
- <body>
- <H1> A definition list:</H1>
- <dl>
- <DT>css website </dt>
- <dd> URL is www.divcss5.com</dd>
- <DT>div CSS website </dt>
- <dd> URL is www.divcss5.com</dd>
- <DT>div+css website </dt>
- <dd> URL is www.divcss5.com</dd>
- </dl>
- </body>
- </html>
Demonstrate
extension and promotion DL DT DD is a combination label label standard usage, code as follows
- <dl>
- <DT> Title 1</dt>
- <dd> List 1</dd>
- <dd> List 2</dd>
- </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