140 likes | 401 Views
Lists. All of the proceeding information can be found at: http://interactiveu.berkeley.edu:8000/pathway/stories/storyReader$13. Three Types Of Lists. There are three types of commonly used lists: Unordered lists Ordered lists Definition lists. List Tags.
E N D
Lists All of the proceeding information can be found at: http://interactiveu.berkeley.edu:8000/pathway/stories/storyReader$13
Three Types Of Lists • There are three types of commonly used lists: • Unordered lists • Ordered lists • Definition lists
List Tags • <ul> stands for unordered list • <ol> stands for ordered list. • <dl> stands for definition list. • Sublist tags: • <li> stands for list item. • <dt> stands for definition term. • <dd> stands for definition definition.
Unordered Lists • An unordered list is a bulleted list. To create an unordered list, you will need to open your list with the tags <ul>. This tells the computer program that you are creating an unordered list. To list an item (with a bullet), you will need to type in <li> before the item that you want listed. After you have typed in the item that you want listed, close the listed item with a closing tag, </li>. Continue listing items using <li> and closing those items with </li>. When you have finished listing all of your items, close the list with </ul>.
Unordered List Example • List the words one, two, and three. • What the list will look like to the user:
Unordered List Example (HTML) • List the words one, two, and three. • What the list will look like in HTML:
Ordered Lists • An ordered list is a list that is numbered. To create an ordered list, you will need to open your list with the tags <ol>. This tells the computer program that you are creating an ordered list. To list an item (with a bullet), you will need to type in <li> before the item that you want listed. After you have typed in the item that you want listed, close the listed item with a closing tag, </li>. Continue listing items using <li> and closing those items with </li>. When you have finished listing all of your items, close the list with </ol>.
Ordered List Example • List the words one, two, and three. • What the list will look like to the user:
Ordered List Example (HTML) • List the words one, two, and three. • What the list will look like in HTML:
Definition Lists • A definition list allows you to create a list, for example, if you were to do definitions. To create a definition list, you will need to open your list with <dl>. This tells the computer that you are creating a definition list. Next, type in <dt> to list the item that you would like defined. After you have listed that item, close the <dt> with </dt>. To define this item, type in <dd>. This will indent the definition from the word that you are defining. When you have finished defining the term, close the <dd> with </dd>. Finally, after you have finished listed all of the terms that you would like defined, close your list with </dl>.
Definition List Example • Define the words control group and costs. • The definition of control group is: A group of untreated targets that is compared with experimental groups on outcome measures in impact evaluation. • The definition of costs is: Inputs, both direct and indirect, required to produce an intervention.
Definition List Example • What the list will look like to the user:
Definition List Example (HTML) • What the list will look like in HTML:
Make Your Own List! • You are now ready to make your own list. • You should be able to make all three different types of lists.