back

CodeWithRahul

More
  • Home
  • Cources
  • Tutorials
  • Tutorials
  • Projects
  • Notes
  • Contact
  • Work With Us
  • HTML
  • CSS
  • JAVASCRIPT
  • CC++
  • PHP
  • PYTHON
  • REACT JS
  • DSA

RahulGoswami.com

Create an account
  • INTRODUCTION
    • HTML Introduction
    • HTML Working
    • HTML Prerequisite
    • HTML Document
    • HTML Structure 1
    • HTML Page
    • HTML Structure 2
    • HTML Editor
    • HTML View Source
    • HTML Tags
    • HTML Element
    • VS Code
    • installation
  • HTML BASIC TAGS
    • Skeletal Tags
    • Heading Tags
    • Paragraph Tag
    • Horizontal Line Tag
    • Line Break Tag
    • Center Tag
    • Preserve
    • Formatting Tag
  • HTML FORMATTING TAGS
    • Monospaced Font
    • Text Abbreviation Tag
    • Acronym Tag
    • Text tags
  • HTML QUOTATIONS
    • Blockquote Tag
    • Quote Tag
    • Text Citation Tag
    • Text Direction Tag
    • Address Text Tag
    • Code Tag
  • HTML ATTRIBUTES
    • HTML Attributes
    • HTML Core
    • Attributes 1
    • Attributes 2
    • HTML Generic
  • HTML LINKS
    • HTML Links
  • HTML COMMENTS
    • HTML Comments
  • HTML IMAGES
    • HTML Images
  • HTML LISTS
    • HTML Lists
    • HTML Unordered List
    • HTML Ordered List
    • HTML Definition List
  • HTML TABLES
    • HTML Tables
  • HTML BLOCK ELEMENT
    • HTML Block
    • Elements
  • HTML INLINE ELEMENT
    • HTML Inline
    • Elements
  • HTML FORMS
    • FORM Introduction
    • More on forms

    HTML Definition List

    • Definition List is also known as Description List.
    • Definition List works the same as a dictionary works.
    • Dictionary is used for describing the term similarly in HTML we use a Definition List or Description List to define a term.
    Definition Image

    Syntext:

    <dl>
    // Content
    <dl/>
    

    <dl> tag is used to define a definition list.

    For terms/names, we use <dt> tag.

    Syntext:

    <dl>
    <dt>
    // defintion Term
    </dt>
    </dl>
    

    For describing terms/names, we use <dd> tag.

    Syntext:

    <dl>
        <dd>// defintion Term</dd>
        <dd>// defintion Term</dd>
    </dl>
    

    Let's see an example now:

    Syntext:

    <dl>
        <dt>Happiness</dt>
        <dd>a state of well-being and contentment : joy</dd>
        <dt>Sorrow</dt>
        <dd>a feeling of great sadness because something bad has happened</dd>
    </dl>
    
    Owner of this WebPage Image

    CodeWithRahul

    Copyright © 2023 CodeWithRahul.com