Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to HTML Lists Why Use Lists? Lists are one way to organize information for easy access. People are familiar with using lists to organize.

Similar presentations


Presentation on theme: "Introduction to HTML Lists Why Use Lists? Lists are one way to organize information for easy access. People are familiar with using lists to organize."— Presentation transcript:

1

2 Introduction to HTML Lists

3 Why Use Lists? Lists are one way to organize information for easy access. People are familiar with using lists to organize information in their day-to-day lives.

4 Type of Lists Plain-Text Lists Ordered Lists Unordered Lists Lists of Lists (Nesting) Definition Lists Menu List (Considered Obsolete) Directory Lists (Considered Obsolete)

5 Plain-Text Lists The tag can be used to “force” lists. Lists 1 The following shows a forced way to build a Christmas list: 1. Partridge in a pear tree 2. French Hens 3. Calling Birds

6 Ordered Lists - Two HTML tags are involved with the ordered list: Order-list container... List-item container (Browser will automatically close it when it finds another. By default the lists will use Arabic numerals starting with 1.

7 Ordered List Example: Lists 2 The following shows a efficient way to build a Christmas list: Partridge in a pear tree French Hens Calling Birds

8 Ordered List - Attributes - Used to have a list start at some number other than one. Lists 3 The following shows a efficient way to build a Christmas list: Partridge in a pear tree French Hens Calling Birds I forgot the next three items. Rings

9 TYPE Attribute Changes the style of the numbers or letters of the list elements.

10 TYPE Attribute Example Lists 4 The following shows a efficient way to build a Christmas list: Partridge in a pear tree French Hens Calling Birds I forgot the next three items. Rings

11 List-Item Tag - Can contain almost anything if it defines an element of an ordered or unordered list. Universal container - used for all of the different types of lists except definition lists.

12 List-Item Tag (Continued) What it generates depends on the type of list. Ordered list - list element is preceded by a number or letter. Unordered list - list element is preceded by one of the different bullet types.

13 List-Item - TYPE Attribute Much like the TYPE attribute of the container. TYPE attribute used with... - specifies style of the number for the whole list. specifies style for a single list item.

14 - TYPE Attribute Example List 5 The following list shows each type of list item, and describes what it is. This element is of type A This element is of type a This element is of type I And element is of type i

15 List-Item - VALUE Attribute Example: VALUE=1 Specifies a starting value (also style) that will serve as the new base number for the rest of the item in the list. Used only within a list only. (Use START at the start of a list).

16 Unordered List - Also called a bulleted list. Similar to the ordered list - except bullets are used rather than numbers. Possible to change the shape of the bullets by using the TYPE option. (Netscape only) COMPACT compresses line spacing between the list items. (Most browsers ignore)

17 Unordered List - Example Unordered Lists The following books usually appear on the bookshelf of Web Weavers: How to Explain Obtuse Ideas to Anyone Excellent Paper Airplanes Vol.4 Excellent HTML In addition, the heard core will also have a book about knots available.

18 Nesting (List of Lists) Builds structures that convey complex relationships. Netscape will indent the list within a list to increase readability. Three types of nesting: Combined Ordered and Unordered Lists Nested Unordered Lists Nested Ordered Lists

19 Nesting (Combined Lists) Nesting When packing a briefcase, be sure to: Pack the Lap Top. Get the power cord. Find the box of disks. Check the Day Timer. Check for the right month. Check for the right year. Example

20 Nesting (Unordered Lists) Nesting Unordered When packing a briefcase, be sure to: Pack the Lap Top. Get the power cord. Find the box of disks. Get homework disk. Get sample disk. Check the PCMCIA cards Check the Day Timer. Check for the right month. Check for the right year.

21 Nesting (Ordered Lists) Nesting Ordered When packing a briefcase, be sure to: Pack the Lap Top. Get the power cord. Find the box of disks. Get homework disk. Get sample disk. Check the PCMCIA cards Check the Day Timer. Check for the right month. Check for the right year.

22 Nesting (Ordered Lists) Nesting Ordered 2 When packing a briefcase, be sure to: Pack the Lap Top. Get the power cord. Find the box of disks. Get homework disk. Get sample disk. Check the PCMCIA cards Check the Day Timer. Check for the right month. Check for the right year.

23 Readability Long files of HTML code are hard to read. Ways to make the file easier to read: A couple of blank line around structural parts (lists, etc.) A tab or two in front of subordinate items to show relationships. Place logical part of HTML code on separate lines.

24 Readability Nesting Ordered 2 When packing a briefcase, be sure to: Pack the Lap Top. Get the power cord. Find the box of disks. Get homework disk. Get sample disk. Check the PCMCIA cards Check the Day Timer. Check for the right month. Check for the right year. Nesting Ordered 2 When packing a briefcase, be sure to: Pack the Lap Top. Get the power cord. Find the box of disks. Get homework disk. Get sample disk. Check the PCMCIA cards Check the Day Timer. Check for the right month. Check for the right year. Both will produce the same nested lists.

25 Definition Lists Presents data formatted like a glossary or dictionary. Ideal format to present lists of words or concepts and their meaning. Common tags... Definition list Define term Define definition

26 The End


Download ppt "Introduction to HTML Lists Why Use Lists? Lists are one way to organize information for easy access. People are familiar with using lists to organize."

Similar presentations


Ads by Google