Lists. Ordered and Unordered.

Lists are of two types – Ordered and Unordered.

An ordered list is a pair of tags that have the syntax <ol> </ol>.

Each item in the list is denoted by <li> and </li>

<html>
<body>
<ol>
<li> Item 1 </li>
<li> Item 2 </li>
<li> Item 3 </li>
</ol>
</body>
</html>

Whereas, an unordered list has the syntax <ul> </ul>

Each list item is denoted by <li> and </li> as well

<html>
<body>
<ul>
<li> Item 1 </li>
<li> Item 2 </li>
<li> Item 3 </li>
</ul>
</body>
</html>

 

Advertisements
Categories: Uncategorized | Tags: , , , | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: