用 HTML 解释描述列表
描述列表是术语列表,其中包含每个术语的描述。 HTML 中的列表用于以列表形式指定特定信息。 Html 中有多种类型的列表,例如有序列表、无序列表和描述列表。
描述列表用于:
- 对我们在列表中定义的特定术语进行定义。
- 有一个字典类型的格式(术语和术语的定义)
描述列表的格式:
- 描述列表与 html 中的描述列表标记
- 标记一起使用。
- 在
- 标签中我们有描述术语它被表示为
- 标签这里我们不使用 li 标签作为其他列表。在
- 中写入数据的条款。在
- 标签的帮助下,我们可以有不同的术语。
- 标签这里我们不使用 li 标签作为其他列表。在
- 在此我们使用数据描述标签
- 我们使用此标签来定义我们已声明的术语。例如。如果我们将术语声明为比萨,那么我们可以将比萨描述为一种食品。
句法:
Contents of the list
示例 1:
HTML
Description lists in html
GeeksForGeeks Courses
Live courses at GeeksForGeeks
and their Description
-
Full Stack Development with
React & Node JS - Live:
-
Learn how to develop Single
Page Web Applications.
- System Design - Live:
-
For individuals looking to
crack SDE job interviews.
- JAVA Backend Development - Live:
- Learn backend development with Java
- DSA Live for Working Professionals:
-
A LIVE classroom program designed
for Working Professionals
HTML
Description lists in html
GeeksForGeeks problem difficulties
This is Type and description of problem
difficulty levels
at Practice
platform of GeeksForGeeks.
- School:
- Basic/school level problems
- Basic:
- Simple logical problems
- Easy:
-
Problems based on simple
data structures and logic
- Medium:
- Medium level problems based on dsa
- Hard:
- High level logical thinking problems
输出:
示例 2:
HTML
Description lists in html
GeeksForGeeks problem difficulties
This is Type and description of problem
difficulty levels
at Practice
platform of GeeksForGeeks.
- School:
- Basic/school level problems
- Basic:
- Simple logical problems
- Easy:
-
Problems based on simple
data structures and logic
- Medium:
- Medium level problems based on dsa
- Hard:
- High level logical thinking problems
输出: