Home > Web Front-end > HTML Tutorial > html
tag syntax structure and usage

html
tag syntax structure and usage

黄舟
Release: 2017-06-21 15:01:12
Original
3004 people have browsed it

dl Tag--represents HTML custom list

dl tags appear in pairs, starting with

and ending with

The custom list starts with the

tag, and the title of each element in the list is defined with
(definition term), followed by
(definition description) to describe the content of the element in the list.

Attribute:

Common -- General attribute

dl, is the English abbreviation of definition lists, Chinese "definition" List" means

Example

<dl>    
<dt>www</dt>        
<dd>World Wide Web的缩写.</dd>    
<dt>dreamdu</dt>        
<dd>梦之都.</dd>        
<dd>www的:).</dd>    
<dt>com</dt>    
<dt>com.cn</dt>    
<dt>cn</dt>        
<dd>这都是域名的后缀.</dd>
</dl>
Copy after login

dd are all things that DIV+CSS can be used to make web pages, which are equivalent to the tree skills of a tree. Let’s learn about the overall usage of these things. I rarely use dd, dt, and dd. Knowing how to use them in combination is very beneficial to architecture!

DIV
Commonly used list elements in CSS web page layout ul ol li dl dt dd explanation, block-level element div should be used as little as possible. Like table, the less nested the better

Many people tend to ignore
The usage of dl dt dd
dl content block
dt The title of the content block
dd
Content
can be written like this:

<dl> 
<dt>标题</dt> 
<dd>内容1</dd> 
<dd>内容2</dd> 
</dl>
Copy after login

We usually use the < ul>< li> tag, but the dd and dt tags are also It's pretty good, especially when you publish a program, you can use it to typeset the function module list.

The above is the detailed content of html

tag syntax structure and usage. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Previous article:Usage and definition of
tag in html Next article:How to use the background-repeat attribute in css
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template