Home > Web Front-end > HTML Tutorial > Detailed explanation of the use of html tags dl, ul, and ol

Detailed explanation of the use of html tags dl, ul, and ol

黄舟
Release: 2017-06-30 14:06:38
Original
2368 people have browsed it

This article mainly introduces the use of HTML list tags dl, ul, and ol. It is more suitable for beginners. If you are interested, you can learn it

The code is as follows:

<!-- 
列表标签:<dl>:分层列表 
子标签:<dt>:上层列表项 
<dd>:下层列表项 
------------ 
无序列表标签:<ul> 
子标签:<li> 
------------ 
无序列表标签:<ol> 
子标签:<li> 
--!> 
<html> 
<head> 
<title> 列表标签的
练习
</title> 
</head> 
<body> 
<dl> 
<dt>标号</dt> 
<dd>1</dd> 
<dd>2</dd> 
<dd>3</dd> 
</dl> 
<hr> 
<ul type="disc"> 
<li>苹果</li> 
<li>香蕉</li> 
<li>橘子</li> 
</ul> 
<hr> 
<ol type="1"> 
<li>苹果</li> 
<li>香蕉</li> 
<li>橘子</li> 
</ol> 
<hr><!--练习标签的嵌套--> 
<dl> 
<dt>四大天王</dt> 
<dd> 
<ol type="1"> 
<li>张学友</li> 
<li>刘德华</li> 
<li>郭富城</li> 
<li>黎明</li> 
</ol> 
</dd> 
</dl> 
</body> 
</html>
Copy after login


The above is the detailed content of Detailed explanation of the use of html tags dl, ul, and ol. 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