HTML Other Lists

We’re talking about HTML lists Other. Description lists are also supported by HTML.

A description list contains a list of terms accompanied by a description. HTML lists are used to describe specific information.



HTML Description Lists

In HTML lists, a description list consists of a list of terms described in a particular way as it comes to HTML lists other.

The description list is defined by the <dl> tag, the <dt> tag determines the term (name), and each term is described by the <dd> tag:

Example

<!DOCTYPE html> <html> <body> <dl> <dt>Tea</dt> <dd>- black cold Cofee</dd> <dt>Juice</dt> <dd>- black cold drink</dd> </dl></body> </html>

Here is another example of Description list:

Example: 

<!DOCTYPE html> <html> <body> <p>Companies around the world:</p> <dl> <dt>Telsa</dt> <dd>Founder of Tesla is Elon Must.</dd> <dt>Microsoft</dt> <dd>Founder of Microsoft is Bill Gates</dd> <dt>Facebook</dt> <dd>Founder of Facebook is Mark Zukerberg</dd> </dl> </body> </html>

Single term, multiple descriptions

Example: 

<!DOCTYPE html> <html> <body> <dl> <dt>Chrome</dt> <dt>Google Chrome</dt> <dt>Gc</dt> <dd> Google Chrome is a free, open source, cross-platform web browser developed by Google. </dd> <dd> It was first released in 2008 for Microsoft Windows, built with free software components from Apple WebKit and Mozilla Firefox. Versions were later released for Linux, macOS, iOS, and also for Android, where it is the default browser. </dd> </dl> </body> </html>

Multiple terms, single description

Example: 

<!DOCTYPE html> <html> <body> <dl> <dt>Chrome</dt> <dt>Google Chrome</dt> <dt>Gc</dt> <dd> Google Chrome is a free, open source, cross-platform web browser developed by Google. </dd> </dl> </body> </html>

Metadata

Metadata can be presented as key-value pairs with description lists.

Example: 

<!DOCTYPE html> <html> <body> <dl> <dt>Name</dt> <dd>Google Chorme</dd> <dt>First Released</dt> <dd>2008</dd> <dt>Programming languages</dt> <dd>JavaScript, Java, Python, HTML, C, C++, Assembly language</dd> <dt>Developers</dt> <dd>Google</dd> </dl> </body> </html>

Advice: A CSS key-value separator can be useful, for example:

dt::after {
content: “: “;
}


HTML List Tags

TagOverview
<li>List items are defined by this property in HTML lists other.
<ol>Lists that are ordered .when it comes to HTML lists other
<dt>Represents a term in a description list.
<ul>Lists are defined as unordered in HTML lists other.
<dl>Specifies a description list.
<dd>Delivers a description list for the term.

Visit our HTML Tag Reference if you want an exhaustive rundown of all accessible HTML tags.


Advantages of using HTML Description List

Here are some benefits of HTML description lists:

  • Provides clear and structured information: Description lists allow you to present information in a clear and structured way, making it easier for readers to understand and digest the information.
  • Helps with accessibility: HTML description lists can be easily read by screen readers and other assistive technologies, making them an excellent way to improve the accessibility of your content.
  • Improves SEO: By using description lists, you can include important keywords and phrases in a way that is easy for search engines to recognize and index, improving the SEO of your content.
  • Saves space: Description lists allow you to present information in a more concise and compact manner, saving space on your web page and making it easier for readers to scan and find the information they need.
  • Supports multiple formats: HTML description lists can be easily formatted and styled using CSS, allowing you to customize the appearance and layout of your content to suit your needs.

If this article somehow fulfilled your educational requirements, then do share this meaningful content with your friends by clicking the links below.
We value your feedback.
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0

Subscribe To Our Newsletter
Enter your email to receive a weekly round-up of our best posts. Learn more!
icon

Leave a Reply

Your email address will not be published. Required fields are marked *