Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 23 - 2606_PlugGPT_C7_Flipbook
P. 23

    DESCRIPTION LIST
                     A description list is not a list of items. We can use this type of list formatting for defining terms on

                     a web page. It is also called a definition list.
                     A description list is enclosed within the <DL> ....... </DL> tag.

                     It contains the following tags:

                       <DL> tag (Definition List): This tag indicates the beginning of a definition list, grouping terms
                       and their corresponding descriptions.
                       <DT> tag (Definition Term): This tag specifies the name or terms being defined within the list.

                       <DD> tag (Definition Description): This tag provides a description or explanation for each term
                       listed, following the <DT> tag.

                     Write HTML code to print a description list.

                     <!DOCTYPE html>
                     <HTML>
                     <HEAD>

                     <TITLE> List</TITLE></HEAD>
                     <BODY>
                     <H2> Essay on Noise pollution</H2>
                     <DL>
                     <DT>Sources of noise pollution</DT>
                     <DD>The noise from the road vehicles produces disturbance. The noise
                     from the traffic has increased due to increased density of road traffic.
                     Noises created in the construction of buildings, highways, roads, streets
                     with the use of hammers, bulldozers, pavement breakers, etc.</DD>

                     <DT>Effects of Noise Pollution</DT>
                     <DD>It induces deflation of muscles which results into a nervous breakdown
                     and strain. Irritation, headache, dismay are the most common effects of
                     noise pollution which ultimately affects work efficiency.</DD>
                     </DL>
                     </BODY>
                     </HTML>

                                                                                              Lists and Tables in HTML5  21

| 18 19 20 21 22 23 24 25 26 27 28 |