facebook twitter
Webucator's Free Adobe Dreamweaver Tutorial

Lesson: Lists

Welcome to our free Adobe Dreamweaver tutorial. This tutorial is based on Webucator's Introduction to Dreamweaver Creative Cloud (CC) Training course.

HTML provides three types of lists:

  1. Unordered Lists - used to create lists in which the order of the list items is not important (e.g., a grocery list or a list of people in a group).
  2. Ordered Lists - used to create lists in which the order is important (e.g., a recipe or setup instructions).
  3. Definition Lists - used to create lists containing terms and definitions (e.g., a dictionary or glossary).

In this lesson, we will learn how to create all three.

Lesson Goals

  • Learn to create unordered lists.
  • Learn to create ordered lists.
  • Learn to create nested lists.
  • Learn to create definition lists.

Ordered and Unordered Lists

Creating ordered and unordered lists in Dreamweaver is simple using the list icons in the Properties: Properties Panel List Button Icons To illustrate:

  1. Open ClassFiles/dreamweaver-cc/Exercises/Anchors-list.html in Dreamweaver.
  2. Place the cursor on the line with the three linked story titles.
  3. Click on the Unordered List icon in the Properties. Your page should appear as follows: List Anchor Examples
  4. Place the cursor at the end of "Pooh Goes Visiting" and delete the dividing bar: List Anchor Examples
  5. Press Enter:List Anchor Examples Vertical
  6. Place the cursor at the end of "A Mad Tea-Party," delete the dividing bar and press Enter:List Anchor Vertical List Complete
  7. To add another bullet at the end of the list, place the cursor at the end of "The Naughty Boy" and press Enter and type a story name:New List Item Vertical List
  8. You can add additional bullets by typing story names and pressing Enter just as you would in a typical Word processing tool.

You create ordered (or numbered) lists in the same way. In step 3 above, you would click the Ordered List icon instead of the Unordered List icon.

Creating a List from Scratch

To create an ordered or unordered list from scratch, simply start a new paragraph and press the appropriate list icon on the Properties.

Nesting Lists

Unordered and ordered lists may be nested any number of levels deep. To illustrate:

  1. Open ClassFiles/dreamweaver-cc/Exercises/nested-list.html in Dreamweaver.
  2. The page is currently empty. Type "Grocery List" and make it a Heading 1.
  3. With the cursor below the heading, begin an unordered list by clicking on the Unordered List icon in the Properties.
  4. Type "Fruit" and press Enter:Example List Grocery List
  5. To create your nested list, press Tab (or click the Indent icon Example List Grocery List Adding List Items on the Properties) and type "Apples" Enter, "Pears" Enter, "Bananas" Enter: Example List Adding More List Items
  6. There are multiple ways to get back to the parent list:
    1. Press Enter again.
    2. Press Shift+Tab.
    3. Click the Indent icon Indent Icon on the Properties.
  7. Type "Meat" and press Enter:Grocery List Items Indented
  8. Continue with your list until it looks like this:Completed List
  9. To get out of a list, make sure the cursor is at the very end of the last item in the list and press Enter twice.

Converting Lists

To convert an unordered list to an ordered list (or vice versa), click somewhere within the list (or sublist) and then click the appropriate list icon on the Properties.

Definition Lists

Definition lists, which are used less frequently than unordered and ordered lists, are used to create lists containing terms and definitions. Dreamweaver does not provide a way to create them using the Properties.

In Dreamweaver:

  1. Select the location to place the list.
  2. Choose Edit > List > Definition List.
  3. Enter the list items. Press enter after the term, then type the definition. Repeat as needed until all terms and definitions are entered.

To illustrate how a definition list is added to a page:

  1. Open ClassFiles/dreamweaver-cc/Exercises/definition-list.html in Dreamweaver.
  2. The page is currently empty. Type "Abbreviations" and make it a Heading 1.
  3. With the cursor below the heading, begin a definition list choose Edit > List > Definition List. You will not notice any change on the page, but if you look at the Tag Inspector on the bottom left, you will see this:Definition Term and Definition List in Tag Inspector This indicates that you are in a definition term (dt) within the definition list (dl).
  4. Type the following:
    • ol Enter
    • Ordered List Enter
    • ul Enter
    • Unordered List Enter
    • dl Enter
    • Definition List Enter Enter
  5. After pressing Enter twice at the end of the list, you should no longer be in the definition list and your page should look as follows:List in Browser

The display of definition lists is a little odd, but, if you learn CSS well, you will be able to change the display to look like the page below (or however else you like): Styled List

Creating Lists

Duration: 15 to 25 minutes.

In this exercise you will create a new page that looks like this:List of Running Terms

  1. Create a new page and save it as RunningTerms.html in ClassFiles/dreamweaver-cc/Exercises.
  2. Add the title and heading level 1.
  3. Create the list of links at the top. Here are the links:
    • Home: index.html
    • Races: Races.html
    • Resources: Resources.html
    • Calculator: Calculator.html
    • Running Log: RunningLog.html
    • My Account: MyAccount.html
    • Log out: Logout.html
  4. Add the definition list below the navigation menu.
    • If you do not want to type the whole list out, you can grab the content from ClassFiles/dreamweaver-cc/Exercises/RunningTerms.txt; however, do not copy and paste the whole thing at once as that will add a bunch of unwanted paragraphs. Rather, copy and paste each term and definition as needed.
  5. Save your page and open it in the browser. Does it look right?

Converting Existing Content to Lists

Converting existing content to lists in Dreamweaver can be tricky. The easiest way to see this is to illustrate with an example. Our end goal is a list that looks like this:List Complete

  1. Open ClassFiles/dreamweaver-cc/Exercises/groceries.html in Dreamweaver.
  2. Open ClassFiles/dreamweaver-cc/Exercises/groceries.txt and copy and paste its entire content into groceries.html:Grocery List Pasted in
  3. Highlight everything you just pasted in and click the Ordered List icon in the Properties: Grocery List Indented
  4. Now we want to turn the actual food items into sublists. Highlight the three fruit items like this: Adding SublistsAnd press Tab.
  5. That didn't work, did it? Your list probably looks like this: Incorrect List with Sublists
  6. Undo using Edit > Undo Indent or by pressing CTRL+Z.

Here's the problem: those breaks that move the names of the food items to the next lines are line breaks not new paragraphs. The content that comes after them (i.e, the fruit item names) are considered part of the "Fruit" list item. So you cannot indent the individual items without indenting the "Fruit" list item as well.

The solution is to delete the line breaks:

  1. Place the cursor immediately before the letter "A" in "Apples" and press Backspace until "Apples" is on the same line as "Fruit":Fixing List
  2. Press Enter to create a new list item: Create New List Item
  3. Do the same thing with "Pears" and "Bananas" and then highlight all three fruit: Select List Items
  4. Press Tab. That should have worked: List with Tabbed Items
  5. Now we can covert the sublist to an unordered list by highlighting all three fruit names and clicking the Unordered List icon in the Properties:Unordered List Indented

Watch as your instructor repeats this for the "Meat" and "Dairy" list items.

When working with nested lists, if things get messed up, usually the easiest thing is to get rid of the list and start over. To remove a list, highlight the whole thing and click the relevant list icon in the Properties.

Converting Content to a List

Duration: 15 to 25 minutes.

In this exercise you will modify Resources.html, which currently looks like this: Resources in Browser

Notice that it contains a list of resources. Although the order may not matter, it would be nice to be able to refer to a resource by number, so that the list could be represented as an ordered (or numbered) list. Each resource has some related information, which could be represented in a nested list:

  • The date it was posted.
  • A description.

Modify the page to look like this:Resources List with Indented List Items

  1. Open ClassFiles/dreamweaver-cc/Exercises/Resources.html in Dreamweaver.
  2. Modify the page so that it appears as shown in the second screen shot above.
  3. Save your work and open your new page in a browser to test it.