Home > Web Front-end > HTML Tutorial > How to define a definition list in HTML?

How to define a definition list in HTML?

王林
Release: 2023-09-18 17:41:04
forward
1558 people have browsed it

How to define a definition list in HTML?

Use the

tag to add a list of definitions. The HTML
tag is used to declare a definition list. This tag is used within the
tag. A definition list is like other lists, but in a definition list, each list item contains two entries - a term and a description.

Example

You can try running the following code to define a definition list in HTML5 -

<!DOCTYPE html>
<html>
   <head>
      <title>HTML dl Tag</title>
   </head>
   <body>
      <dl>
      <dt>Definition List</dt>
      <dd>A list of terms and their definitions/descriptions.</dd>
      <dt>Android</dt>
      <dd>Android tutorial.</dd>
      <dt>Ruby</dt>
      <dd>Ruby tutorial.</dd>
      </dl>
   </body>
</html>
Copy after login

The above is the detailed content of How to define a definition list in HTML?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template