Home  >  Q&A  >  body text

<ul><li>列表</li></ul> ,为什么后面的代码不可以是</ul> </li>

如题

phpcn_u224phpcn_u2242861 days ago1063

reply all(2)I'll reply

  • 数据分析师

    数据分析师2017-09-30 23:07:57

    <ul><li>List</li></ul>, why can’t the following code be </ul> </li>-PHP Chinese website Q&A-<ul>< li>List</li></ul>, why can’t the following code be </ul> </li>-PHP Chinese website Q&A

    Take a look around and learn.

    reply
    0
  • 阿神

    阿神2016-12-20 14:07:30

    因为要开始标签和结束标签对应

    <ul><li>111</ul></li>

    这样就顺序乱了,浏览器识别不出。<ul></ul>是一个无序列表,<li></li>是列表中的内容。

    列表内容需要在列表中表现。

    reply
    0
  • Cancelreply