How to use ordered lists, unordered lists and definition lists in html

php中世界最好的语言
Release: 2018-01-20 10:11:31
Original
3130 people have browsed it

This time I will show you how to use the ordered list, unordered list and definition list of html. What are the precautions when using the ordered list, unordered list and definition list of html? The following is a practical case, let’s take a look.

Ordered list

<ol type="A", start="C"> <!--ordered list-->  
    <li>第一项</li>  
    <li>第二项</li>  
</ol>
Copy after login


Unordered list

<ul type="disc">  <!--unordered list--> <!--还有两种type:circle,square-->  
    <li>第一项</li>  
    <li>第二项</li>  
</ul>
Copy after login

Definition list

Definition list is defined by Conditions (definition term) and definition description (definition description) constitute

<dt>标记后面添加要解释的名词   
<dd>标记后面添加名词的具体解释   
<dl type="disk">  <!--definition list--> <!--还有两种type:circle,square-->  
    <dt>CSS</dt>  
    <dd>Cascating Style Sheets</dd>  
</dl>
Copy after login

Chestnut:

<!doctype html>  
<html>  
    <head>  
        <meta http-equiv="content-type" content="text/html; charset=utf-8"  
        <meta name="description" content="设置页面说明">  
        <title>网页1</title>  
    </head>  
    <body>  
        <h1>标题</h1>  
                <hr>  
        <ol type="A", start="3"> <!--ordered list-->  
                <li>第一项</li>  
                <li>第二项</li>  
        </ol>  
  
        <ul type="disc">  <!--unordered list--> <!--还有两种type:circle,square-->  
                <li>第一项</li>  
                <li>第二项</li>  
        </ul>  
  
        <dl type="disk">  <!--definition list-->  
                <dt>CSS</dt>  
            <dd>Cascating Style Sheets</dd>  
  
        </dl>  
  
    </body>    
</html>
Copy after login

I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to other related matters on the PHP Chinese website article!

Related reading:

How to use h5’s sse server to send EventSource events

Use H5 and C3 to implement a simple clock Effect

#How to call APP function in H5 page

The above is the detailed content of How to use ordered lists, unordered lists and definition lists in html. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!