代码改变世界

List<ul>

2018-02-27 14:36  Weiweim  阅读(174)  评论(0编辑  收藏  举报

<ul> stands for unordered list and is used to contain the list. The list elements, <li>, are children of the unordered list. Each bullet point is its own <li> and the <li> elements must be children of the <ul> - they can't be placed on their own.

there's another kind of list: an ordered list, <ol>

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Lists Quiz</title>
</head>
<body>
  <p>Create an unordered list! Make a list of the three web languages: HTML, CSS and JavaScript.</p>
  <ul>
    <li>HTML</li>
    <li>CSS</li>
    <li>JavaScript</li>
  </ul>
</body>
</html>