HTML <dl>标签用于声明定义列表。该标签在<dd>标签内使用。
定义列表与其他列表类似,但是在定义列表中,每个列表项都包含两个条目。
链接:https://www.learnfk.comhttps://www.learnfk.com/html/html-dl-tag.html
来源:LearnFk无涯教程网
<!DOCTYPE html> <html> <head> <title>HTML dl Tag</title> </head> <body> <dl> <dt>Definition List</dt> <dd>A list of terms and their definitions/descriptions.</dd> <dt>HTML</dt> <dd>An HTML tutorial.</dd> <dt>PHP</dt> <dd>An PHP tutorial.</dd> </dl> </body> </html>
这将产生以下结果-
此标签支持 HTML 中描述的所有全局属性。
此标签支持 HTML 中描述的所有事件属性。
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | Yes |
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
HarmonyOS快速入门与实战 -〔QCon+案例研习社〕