<dl> HTML Tag

In this article I will discuss the dl tag of HTML.
  • 2278

The HTML dl tag is used for declaring a definition list.A definition list is similar to other lists but in a definition list, each list item contains two entries; a term and a description.

Example

<html>

<head>

    <title></title>

</head>

<body>

    <dl>

        <dt style="color:Blue">Input Devices </dt>

        <dd>

            KeyBoard

        </dd>

        <dd>

            Mouse

        </dd>

        <dd>

            Scanner

        </dd>

        <dd>

            Microphone

        </dd>

        <dd>

            Joystick

        </dd>

        <dd>

            Web Cam

        </dd>

        <dd>

            Optical Mark Reader

        </dd>

        <dd>

            Optical Character Reader

        </dd>

        <dd>

            Optical Bar Code Reader

        </dd>

        <dd>

            Touch Pen

        </dd>

        <dd>

            Graphic Digitizer

        </dd>

        <dd>

            Light pen

        </dd>

        <dd>

            Touch pad\screen

        </dd>

        <dd>

            Track ball

        </dd><br />

        <dt style="color:Blue">Output Devices </dt>

        <dd>

            Monitor

        </dd>

        <dd>

            Printer

        </dd>

        <dd>

            Plotter

        </dd>

        <dd>

            Speaker

        </dd><br />

        <dt style="color:Blue">Both Input/Output Devices</dt>

        <dd>

            CD

        </dd>

        <dd>

            Pen-drive

        </dd>

        <dd>

            MODEM

        </dd>

        <dd>

            hard drive

        </dd>

        <dd>

            tape drive

        </dd>

        <dd>

            disk drive

        </dd>

    </dl>

</body>

</html> 


Output

Input Devices
Keyboard
Mouse
Scanner
Microphone
Joystick
Web Cam
Optical Mark Reader
Optical Character Reader
Optical Bar Code Reader
Touch Pen
Graphic Digitizer
Light pen
Touch pad\screen
Track ball
 
Output Devices
Monitor
Printer
Plotter
Speaker
 
Both Input/Output Devices
CD
Pen-drive
MODEM
hard drive
tape drive
disk drive

Ask Your Question 
 

Got a programming related question? You may want to post your question here
 

 

© 2020 DotNetHeaven. All rights reserved.