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

How to define a definition list in HTML?

王林
王林forward
2023-09-18 17:41:041459browse

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>

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete