02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Building Definition lists with DL, DT and DD

Sometimes you want to have multiple definitions or more over multiple ways to define one thing in this cases you would want to create a Detention list using the DL tag . Once you create a DL tag you may add as many Definition terms (DT tags) and as many Definition Descriptions as you need. In this video we will explore the meaning on this and see it in action.

Video Transcript

00:00The next thing we want to talk about is 'definition lists'
00:03Definition list enables us to create a definition such as for example 'DFN' that we defined
00:09and then break down the details of the different descriptions of those definitions.
00:13The way we do that is we started up with DL that stands for a definition list or lists
00:19and I could then - I'll close DLN and in each DL I'll probably have at least one DT,
00:26and the DT would be a definition desctiptor or the term itself so my term here could be let's say: HTML
00:34and its value would be a DD - definition description.
00:40and the definition description I could write here: HTML is a tag language used to build websites.
00:50So I defined one definition of it, I could use another DD and I could have here another description
00:56and in the second description for the same tag if I wanted to I could write here: Hypertext, multimedia whatever blah blah blah
01:08I don't remember what the full definition is,
01:10So basically it enables you to put here a defining term and its values with DD seperating between different values,
01:17different definitions and you could put here few DTs as well,
01:21so you're not limited to one you could have here DT, DD, as many as you need.
01:26You would never use this for formatting as well, just as much as you wouldn't use an UL or any other term that has a meaning
01:33just for indentation,so let's see this in an action and I'm just going to go to my browser and click on refresh tab
01:40You'll see that it automatically I'll have my HTML defining term, and then indented inside is its actual value
01:50and I could have as well just continued onwards if we had this, we could have added a let's say JavaScript or CSS
01:58CSS is a language used to design websites. and we could create one more, we'll do this for JavaScript,
02:13we'll create one for JavaScript as you guys are getting closer to moving into JavaScript and CSS
02:21so JavaScript is a language used to create user interaction and complex functionalities into websites.
02:36If I go back into my browser, we'll see that we have these indentations and each time we use the DT
02:41it would create a new definition and the DD would create its actual new value
02:46and again we'd never use this formatting just if we wanted to space things out
02:50We'd use them to define elements and give them their explenation.
02:55Alright? That's about it, about definitions and the different tags that are used for definitions,
03:02-how do you feel about the definitions? Do you feel defined? Do you think everything is?
03:06-it's clear. It's defined.
03:09perfect

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!