What is html dl tag?

藏色散人
Release: 2020-10-21 09:26:31
Original
14089 people have browsed it

html dl is the tag used to define the list, and the

tag is used to combine the
and
tags, that is, to combine the items in the definition list and the items in the description list.

What is html dl tag?

##
tag defines the definition list (definition list),
tag is used in conjunction with
(items in the definition list ) and
(describes the item in the list).

What is html dl tag?

Recommended study: "

HTML Tutorial"

Below we will introduce the dl tag to you through specific code examples.


The code example is as follows:


<!DOCTYPE>
<html>
<meta charset="utf-8">
<head>
    <title>html dl标签使用示例</title>
</head>
<body>
<DL>
    <DT>项目1或名称1</DT>
    <DD>项目1的描述</DD>

    <DT>项目2或名称2 </DT>
    <DD>项目2的描述</DD>

    <DT>项目3或名称3</DT>
    <DD>项目3的描述</DD>
</DL>
</body>
</html>
Copy after login

The effect is as follows:


What is html dl tag?##

Definition description List, allowing a pair of tags.

A list of terms or names, multiple pairs allowed.

The definition description of
allows multiple pairs.

Definition list marks its elements by indentation.

This article is about the use of dl tags in HTML. I hope it will be helpful to friends in need!

The above is the detailed content of What is html dl tag?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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