English 中文(简体)
HTML - Lists
  • 时间:2024-09-17

HTML - Lists


Previous Page Next Page  

HTML offers web authors three ways for specifying psts of information. All psts must contain one or more pst elements. Lists may contain −

    <ul> − An unordered pst. This will pst items using plain bullets.

    <ol> − An ordered pst. This will use different schemes of numbers to pst your items.

    <dl> − A definition pst. This arranges your items in the same way as they are arranged in a dictionary.

HTML Unordered Lists

An unordered pst is a collection of related items that have no special order or sequence. This pst is created by using HTML <ul> tag. Each item in the pst is marked with a bullet.

Example

<!DOCTYPE html>
<html>

   <head>
      <title>HTML Unordered List</title>
   </head>
	
   <body>
      <ul>
         <p>Beetroot</p>
         <p>Ginger</p>
         <p>Potato</p>
         <p>Radish</p>
      </ul>
   </body>
   
</html>

This will produce the following result −