Choose a link to get started:ALL NEW!!!Scrolling MarqueesThe BasicsThe BasicsManipulating Text Images Backgrounds Links More Advanced TopicsThe <HEAD> TagTables Forms Frames Lists Advanced TopicsImage MapsCSS - Part 1 CSS - Part 2 CSS - Part 3 CSS - Part 4 Additional TopicsXML Tag FormattingXHTML - Part 1 XHTML - Part 2 |
ListsThe next tutorial here for you is one on lists. You've probably seen them on web pages before but not have known how to make them. Here are a few examples of lists:They look like this :
Whatever they look like, they are all lists. I showed you two types above, unordered and ordered. There is a third type called a definition list. It has no special markings of any kind. We will discuss those last. First, we will discuss unordered and ordered lists. Let's start with unordered lists. Let's take the typical attribute list. This list will be for Horizontal Rulers.
That was the list straight from the Basics tutorial, specifically the list for the Horizontal Rulers, HR. There are two tags used in the unordered list. Those tags are shown in the script below :
There was the explanation list again. That was an unordered list. The unordered list is used a lot in this site. The list of attributes is an unordered list. Why, here is that unordered list of attributes again :
That list is the list of attributes for <UL>. The <LI> tag has no attributes at the current time. The COMPACT attribute has no values. It reduces the amount of white space between list items so to make the list more compact. I have never used it, but it is useful. Many of my HTML friends have used it. <UL COMPACT> The next attribute is the TYPE attribute. It designates the pattern of the bullet in front of the item. The default is the circle, or disc, which is a filled-in circle. That value is "disc". The next is a circle with no colored center, just a white circle. The value for that is "circle". The last value is a square, and the value is, almost obviously, "square".
Our next topic is Ordered Lists. They bullets in front of them are numbers, Roman Numerals, or letters. There are two attributes for this tag, <OL>. They are :
This list was a numbered ordered list. The numbers you see are the default setting. The script for this is not unlike the script for the last one I showed you. The only difference is that instead of <UL>, you have <OL>. Simple enough. The first attribute we will discuss is the TYPE attribute. This should be self-explanitory, so here is the list :
That should take care of that attribute. Now we get to START. This tells the browser at which point to start the list. For example, if TYPE was set to be A, then START would be a capital letter. If START was set to be C, then the first list item would look like this : C. I love this site!!! Of course, you would still have to put, (<LI>I love this site) down as the first list item, but you get the idea of START.
Now we get to the fun part, and the easy part. The following tags have no attributes. They make up a definition list. Take a look at a definition list telling different programing languages and their abbreviations. Even easier is writing it. You only need to know three tags, no attributes, and only one tag requires that it be ended. Take a look at this script.
This script requires almost no explanation, but the complete explanation is found just below this paragraph, but first, notice that only one tag, <DL> requires the appropriate ending tag. This makes writing a definition list very easy.
I hope you have enjoyed our little lists tutorial chat. Lists are easy to make and make the site more complete when they are needed. Have fun!!! |