Home > Web Front-end > HTML Tutorial > Html learning (2) - list tag

Html learning (2) - list tag

黄舟
Release: 2016-12-29 15:17:54
Original
1486 people have browsed it

[code]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html >
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>list</title>
        <meta name="author" content="sync" />
        <!-- Date: 2016-05-29 -->
    </head>
    <body>
        <!--
            Html 注释, 演示列表标签

            列表标签: dl

            上层项目: dt
            下层项目: dd : 封装的内容是会被缩进的。有自动缩进的效果
        -->
        <dl>
            <dt>上层项目内容</dt>
            <dd>下层项目内容</dd>
            <dd>下层项目内容</dd>
            <dd>下层项目内容</dd>
        </dl>

        </hr>

        <!--
            有序和无序的项目列表

            有序: <ol>
            无序:  <ul>
            无论有序还是无序,条目的封装用的都是<li>  
            而且他们都有缩进效果              
        -->

        <ul type="square">
            <li >无序项目列表</li>
            <li>无序项目列表</li>
            <li>无序项目列表</li>
        </ul>

        <ol type="a">
            <li >有序项目列表</li>
            <li>有序项目列表</li>
            <li>有序项目列表</li>
        </ol>

    </body>
</html>
Copy after login

Html learning (2) - list tag

## The above is Html learning (2) - list tag For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!


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