HTML Definition List
An HTML definition list is used to display items in a dictionary-like format. Learn how to create a definition list in HTML.
A definition list is used to display items in a dictionary-like format. It consists of a list of terms and their corresponding definitions. In this tutorial, we will learn how to create a definition list in HTML.
Definition List Example
Here's a simple example to illustrate:
<h1>HTML Definition List</h1>
<dl>
<dt>HTML</dt>
<dd>HyperText Markup Language: The standard language for creating web pages.</dd>
<dt>CSS</dt>
<dd>
Cascading Style Sheets: A stylesheet language used for describing the look and formatting of a
document written in HTML.
</dd>
<dt>JavaScript</dt>
<dd>A programming language commonly used in web development to add interactive features.</dd>
</dl>Understanding the example
In this example:
<dl>is the container for the list.<dt>defines the terms that you want to explain.<dd>contains the definitions or explanations for the terms.
Output of the example
Here is the output of Definition list:
HTML Definition List
HTML
HyperText Markup Language: The standard language for creating web pages.
CSS
Cascading Style Sheets: A stylesheet language used for describing the look and formatting of a document written in HTML.
JavaScript
A programming language commonly used in web development to add interactive features.conclusion
In this tutorial, we learned how to create a definition list in HTML. Definition lists are useful for displaying items in a dictionary-like format, with terms and their corresponding definitions. They are commonly used for glossaries or metadata display.
How is this guide?
Sign in to share your feedback
Help us improve by sharing your thoughts on this guide.
Last updated on
HTML Meta Tags
Meta tags are essential for search engine optimization (SEO) and social media sharing. They provide information about the webpage, such as the title, description, and author. This tutorial covers the most common meta tags and their attributes.
HTML Ordered List
An ordered list in HTML is used to display items in a numerical sequence. Learn how to create an ordered list in HTML.