The first list you should know about is the unordered list. Like the one with the vegetables it creates an association for the web user where they presume that each item is of an equal value.
Unordered lists are used for web-navigation like the bar above that has links to the other steps of this website.No link is greater than the other, they just take the user to another portion of the website.
I keep mentioning order because the other list that you will use is the ordered list. All an ordered list doeas is apply a set of numbers to a list items to grade value or sequence.
Between the two lists: you can start getting some real information down and make your website look that much more professional!
Now you that have a good start to your web page you should add more content with a diversified and organized way of presenting it! So, it has come to that time in life when a web user begins going "changes" which turns them into a web developer. With those changes, you will begin to notice certain things that need to be explained with the "list" conversation.
Lists are a way to organize information such as links and other correlated information that is visually recognizable. When you see a list like: potato, carrot,and squash; you make the association that this list is of vegetables. Now the same list with added information like a number next to each vegetable implies a ranking of some sort. In the next few boxes you will review how to create each type of list.
Here is some information that has to be sorted into a list: Cows come in various colors: black, brown, and red; they make milk, leather, meat, glue, fertilizer, and flowerpots(not kidding google it); Finally they come in three flavors: strawberry, chocolate, and classic.
To create any list you need to first declare the type element: in this we you will go with an unordered list denoted as <ul> </ul>.
Inside the unordered list element you place list items as <li></li> and for every peice of information that you have you add another list item. When done correctly you get this:
<p> Cows come in various colors
<ul>
<li>Red</li>
<li>Brown</li>
<li>Black</li>
</ul>
</p>
An unordered list will put bullet points to identify each item individually like you would find used in a word processor.
The ordered list acts the same as the unordered list aside from the fact that the items receive numbers instead of bullet points. It is also up to the web developer to arrange the information in descending order. If you were to arrange the flavors of cow (hehe) in terms of deliciousness it would look like this:
<ol>
<li>strawberry</li>
<li>chocolate</li>
<li>classic</li>
</ol>
With this list Strawberry would be number one with classic being third. There is no other function for an ordered list other than ranking. You will use the unordered list the more frequently, as it is the most versatile.