DEV Community

Charity Parks
Charity Parks

Posted on

HTML Lists part 2

This post is part 2 of 2 on HTML Lists. Previously I covered <ol>, <li> and <ul> elements. If you would like to see that blog post:
https://dev.to/charityparks/html-ol-li-and-ul-elements-explained-19dp
Today i'm going to cover <dl>, <dt> and <dd>.

The <dl> element is how you create a 'definition list'. This would typically be muliple terms and their definitions. Inside the <dl> element you will have <dt> and <dd> elements. <dt> stands for 'definition term' and the <dd> stands for the 'definition' itself.

Here is an example of the code followed by the result:

Code:

<dl>
<dt>Twine</dt>
<dd>Light thread</dd>
<dt>Yarn</dt>
<dd>Long continuous length of fibers</dd>
<dt>Rope</dt>
<dd>Multiple strings that are twisted together</dd>
</dl>

Result:

Twine
Light thread
Yarn
Long continuous length of fibers
Rope
Multiple strings that are twisted together

Enjoy and Happy Coding!

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (2)

Collapse
 
thomasbnt profile image
Thomas Bnt

Just a heads up that there’s a built-in way for folks to link up posts in a series. If you’re interested, you can learn more about how to use our series feature here.

More details in our editor guide!

Collapse
 
charityparks profile image
Charity Parks

Hey! Thanks!!!

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay