Header Ads

Defiition List





A definition list refers to a collection of terms with their corresponding descriptions. For example, you can display a glossary on a Web page by creating a definition list, which will

contain the terms and their descriptions. A definition list appears with the term indented on the left followed by the description on the right or on the next line. By default, the description text appears on the next line and is aligned with respect to the term.

You can specify a single line or multiple lines of description for each term. HTML provides three elements to create a definition list. These elements are as follows:

  • DL
Is a container element that consists of the DT and DD sub-elements. It specifies that a definition list will be created using these elements.

  • DT
Specifies the term to be defied or described.

  • DD
Specifies the definition or description of the term.

Consider a scenario, where you want to create a Web page that will display the types of
nouns with their descriptions. To do this, you must create a definition list. The steps to
create a definition list are as follows:

  • Specify the DL element to indicate that you want to create a definition list.
  • Use the DT element to specify the term such as Common Noun.
  • Use the DD element to specify the description of the term.
Out put of the coding.






Disqus Shortname

Comments system

Powered by Blogger.