WEB/HTML

HTML - List

너굴Dev 2022. 2. 21. 20:58

List

Unordered (순서 없음)

정렬되지 않은 목록 : 항목의 순서가 중요하지 않은 항목 목록을 표시하는 데 사용

<ul>
  <li>milk</li>
  <li>eggs</li>
  <li>bread</li>
  <li>hummus</li>
</ul>

Ordered (순서 있음)

순서 있는 리스트 : 항목의 순서가 중요한 목록

<ol>
  <li>Drive to the end of the road</li>
  <li>Turn right</li>
  <li>Go straight across the first two roundabouts</li>
  <li>Turn left at the third roundabout</li>
  <li>The school is on your right, 300 meters up the road</li>
</ol>

리스트 내부의 리스트(Nesting lists)

<ol>
  <li>Remove the skin from the garlic, and chop coarsely.</li>
  <li>Remove all the seeds and stalk from the pepper, and chop coarsely.</li>
  <li>Add all the ingredients into a food processor.</li>
  <li>Process all the ingredients into a paste.
    <ul>
      <li>If you want a coarse "chunky" hummus, process it for a short time.</li>
      <li>If you want a smooth hummus, process it for a longer time.</li>
    </ul>
  </li>
</ol>

'WEB > HTML' 카테고리의 다른 글

하이퍼링크란? - HTML Creating hyperlinks  (0) 2022.02.24
HTML - 중요와 강조  (0) 2022.02.23
HTML 텍스트 기초  (0) 2022.02.19
head 태그에 있는 HTML 메타데이터  (0) 2022.02.17
HTML 문서의 구조  (0) 2022.02.16