From the course: HTML for Educators

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Creating description lists

Creating description lists - HTML Tutorial

From the course: HTML for Educators

Start my 1-month free trial

Creating description lists

- [Instructor] Now let's look at how to create a description list. I'm in the bottom section of syllabus.html and I've got a live preview open so we can see the changes as they're happening. The description list works differently than the unordered or ordered list that we saw in the last movie, where each item in the list had its own LI tag to note that it was a member of the list. Description lists, or as I often refer to them as, definition lists, are used to define the title of some term or phrase and then provide one or more descriptions of that thing. In the course outline section, we have a list of each of the units that will be covered in the course with a brief description of that unit. As with all lists, we start by defining the region in the code that will contain all of the elements of the list. For a description list, you do that by adding an opening DL tag here, and then go to the bottom of the list region and add a closing DL tag. Now is where we depart from the…

Contents