html css代码笔记,【代码笔记】HTML-列表

本文介绍了HTML中无序、有序列表的使用,包括圆点、实心圆、空心圆等不同样式,并展示了如何通过CSS来定义不同类型的列表样式。此外,还探讨了嵌套列表的用法以及定义列表在表示咖啡和饮料类型时的应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

2bf81854c034349bb3043c3f145ce284.png

html 列表
an unordered list
  • cofferr
  • tea
  • mide
  1. cooffee
  2. tea
  3. mike
coffer
--black hot drink
mike
--white cold drink
numbered list:
  1. apples
  2. bananas
  3. lemons
  4. orange
letters list:
  1. apples
  2. bananas
  3. lemons
  4. orange
lowercase letters list:
  1. apples
  2. bananas
  3. lemons
  4. orange
roman numbers list:
  1. apples
  2. bananas
  3. lemons
  4. orange
lowercase roman numbers list:
  1. apples
  2. bananas
  3. lemons
  4. orange

note: the type attribute of the ul tag is deprecated in html 4, and is not supported in html5. therefore we have used the style attribute and the css list-style-type property, to define different types of unordered lists below:

disc bullets list:
  • apples
  • bananas
  • lemons
  • orange
circle bullets list:
  • apples
  • bananas
  • lemons
  • orange
square bullets list:
  • apples
  • bananas
  • lemons
  • orange
a list inside a list:
  • coffee
  • tea
    • black tea
    • green tea
  • mike
lists inside a list
  • coffee
  • tea
    • black tea
    • green tea
      • china
      • africa
  • mick
a definition list
coffee
-black hot drink
mike
-white cold drink

2bf81854c034349bb3043c3f145ce284.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值