Definition of dl, dd and dt tags in html
When we use lists in the process of making web pages, we generally use the
- or
- tag ("definition title") and the
- tag ("definition description").
- gives the name of the term, and the
- tag gives the definition of the term.
<dl> <dt>相当于标题</dt> <dd>相当于标题下的小分类</dd> </dl>
Copy after loginMaybe my words are difficult to understand, it is similar to the following directory tree:
<dl> <dt>第一章基本语法:</dt> <dd>1.注释</dd> <dd>2.函数</dd> <dd>3.属性</dd> </dl> <dl> <dt>第二章:变量</dt> <dd>1.分配的变量</dd> <dd>2.读取的变量</dd> <dd>3.保留的变量</dd> </dl>
Copy after loginThe above is the detailed content of Definition of dl, dd and dt tags in html. For more information, please follow other related articles on the PHP Chinese website!
- tags, and rarely use the
- tags, but these three tags have an important role that cannot be ignored. After all, the Web Existing tags should be used as much as possible in the standard. Their uses are:
< dl>< /dl> is used to create a normal list,
< dt>< /dt> is used to create upper-level items in the list,
< ; dd>< /dd> is used to create the lowest item in the list.
< dt>< /dt> and < dd>< /dd> must be placed in < dl>< / dl> between pairs of flags.
The following is an example:
<html> <head> <title>一个普通列表</title> </head> <body text="blue"> <dl> <dt>中国城市</dt> <dd>北京 </dd> <dd>上海 </dd> <dd>广州 </dd> <dt>美国城市</dt> <dd>华盛顿 </dd> <dd>芝加哥 </dd> <dd>纽约 </dd> </dl> </body> </html>
We can see that the text in the middle of
will move forward even if we do not indent it. The content in the middle of is automatically indented backwards.Generally, when we make lists, we usually only use the ul and li tags. As for DL, it is rarely used. It also belongs to the tags of the list class. The
- tag defines A definition list whose entries are created using the

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Guide to Table Border in HTML. Here we discuss multiple ways for defining table-border with examples of the Table Border in HTML.

Guide to HTML margin-left. Here we discuss a brief overview on HTML margin-left and its Examples along with its Code Implementation.

This is a guide to Nested Table in HTML. Here we discuss how to create a table within the table along with the respective examples.

Guide to HTML Table Layout. Here we discuss the Values of HTML Table Layout along with the examples and outputs n detail.

Guide to HTML Input Placeholder. Here we discuss the Examples of HTML Input Placeholder along with the codes and outputs.

Guide to the HTML Ordered List. Here we also discuss introduction of HTML Ordered list and types along with their example respectively

Guide to Moving Text in HTML. Here we discuss an introduction, how marquee tag work with syntax and examples to implement.

Guide to HTML onclick Button. Here we discuss their introduction, working, examples and onclick Event in various events respectively.
