HTML文字列表标签

-------------------------------HTML文字列表标签---------------------------

文字列表标签:

       ol:有序列表(orderly list)

              属性

                     Start从?开始,默认是1

                     Type类型。 A,a,I,i,1 默认是数字1

            子标签:li

示例代码:

<html>

       <head>

              <title>www.likunpeng.command</title>

       </head>

       <body>

              <h1>HTML文字列表标签</h1>

              <hr/>

              <h3>ol有序列表标签使用</h3>

              <h4>列出你喜欢的电影</h4>

              <ol>

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ol>

             

              <ol type= "A">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ol>

             

              <ol type= "a">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ol>

             

              <ol type= "I">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ol>

             

              <ol type= "i">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ol>

             

              <ol type= "1" start="3">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ol>           

       </body>

</html>

--------------------------------------------------

HTML文字列表标签


ol有序列表标签使用

列出你喜欢的电影

1.    唐山大兄

2.    死亡游戏

3.    猛龙过江

A.    唐山大兄

B.    死亡游戏

C.    猛龙过江

a.     唐山大兄

b.     死亡游戏

c.      猛龙过江

       I.           唐山大兄

    II.           死亡游戏

  III.           猛龙过江

       i.           唐山大兄

     ii.           死亡游戏

  iii.           猛龙过江

3.    唐山大兄

4.    死亡游戏

5.    猛龙过江 

----------------------------------------------------------

ul:无序列表(unordered list)

       属性:

       Type 空心圆 circle、实心圆 disc、实心方块square、默认disc

       子标签:li

dl:定义列表(definition list)

       子标签:dl

              dt:定义语

              dd:定义说明

示例代码:

<html>

       <head>

              <title>www.likunpeng.command</title>

       </head>

       <body>

              <h1>HTML文字列表标签</h1>

              <hr/>

              <h3>ul无序列表标签使用</h3>

              <h4>列出你喜欢的电影</h4>

              <ul type = "disc">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ul>

             

              <ul type= "circle">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ul>

             

              <ul type= "square">

                     <li>唐山大兄</li>

                     <li>死亡游戏</li>

                     <li>猛龙过江</li>

              </ul>

              <hr/>

              <h3>定义列表标签使用</h3>  

              <h4>列出你喜欢的球星</h4>

              <dl>

                     <dt>詹姆斯</dt>

                     <dd>联盟第一人</dd>

                     <dt>乔丹</dt>

                     <dd>历史第一人</dd>

                     <dt>张伯伦</dt>

                     <dd>恐怖第一人</dd>

              </dl>

       </body>

</html>

----------------------------------------------

HTML文字列表标签


ul无序列表标签使用

列出你喜欢的电影

  • 唐山大兄
  • 死亡游戏
  • 猛龙过江
  • 唐山大兄
  • 死亡游戏
  • 猛龙过江
  • 唐山大兄
  • 死亡游戏
  • 猛龙过江

定义列表标签使用

列出你喜欢的球星

詹姆斯

联盟第一人

乔丹

历史第一人

张伯伦

恐怖第一人

猜你喜欢

转载自blog.csdn.net/weixin_41547486/article/details/80044819