Page 86 - ConceptGP_C7_Fb
P. 86

REVERSED Attribute                                                                                                        <LI>Social workers</LI>
                  By  default,  HTML arranges  items  in  ascending  order. We  can  change  the  order  of the  list  in                   <LI>Public health

                  descending  order by  using  the  Reversed attribute.  Syntax:  <OL  REVERSED>  Use of REVERSED                           physicians</LI>
                  attribute with <OL> tag in HTML.                                                                                          </UL>
                                                                                                                                            </BODY>
                  <!DOCTYPE html>
                                                                                                                                            </HTML>
                  <HTML>
                  <HEAD> <TITLE>Ordered List</TITLE> </HEAD>                                                                                DESCRIPTION LISTS
                  <BODY>                                                                                                                    A description list is not a list of items. We can use this type of list formatting for defining terms on
                  <H2> List of Fruits that Grow on Trees:</H2>                                                                              a web page. It is also called a definition list. A description list is enclosed within the <DL> ... </DL>
                  <OL Type="a" REVERSED>                                                                                                    tag. It contains the following tags:

                  <LI>Almonds</LI>
                                                                                                                                               <DL> tag (Definition List): This tag marks the beginning of the definition list.
                  <LI>Apples</LI>
                                                                                                                                               <DT> tag (Data Term): This tag defines the names or terms.
                  <LI>Cherries</LI>
                                                                                                                                               <DD> tag (Data Definition): This tag describes each item in the description list.
                  <LI>Coconuts</LI>
                                                                                                                                            Write HTML code to print a description list.
                  <LI>Lychee</LI>
                  <LI>Oranges</LI>                                                                                                          <!DOCTYPE html>
                  <LI>Olive</LI>                                                                                                            <HTML>
                  <LI>Persimmons</LI>                                                                                                       <HEAD> <TITLE> List</TITLE></HEAD>
                  </OL>                                                                                                                     <BODY>

                  </BODY>                                                                                                                   <H2> Essay on Noise pollution</H2>
                  </HTML>                                                                                                                   <DL>
                                                                                                                                            <DT>Sources of noise pollution</DT>
                  UNORDERED LISTS
                                                                                                                                            <DD>The noise from the road vehicles produces disturbance. The noise
                  An unordered list is used when the items in the list are not required to be in a specific order. It is also               from the traffic has increased due to increased density of road traffic.
                  called a bulleted list. An unordered list is enclosed within the <UL> ... </UL> tag. Each item in the list                Noises created in the construction of buildings, highways, roads, streets
                  is given an <LI> tag, which specifies the list item. Write HTML codes to print an unordered list.                         with the use of hammers, bulldozers, pavement breakers, etc.</DD>


                  <!DOCTYPE html>                                                                                                           <DT>Effects of Noise Pollution</DT>
                  <HTML>                                                                                                                    <DD>It induces deflation of muscles which results into a nervous
                  <HEAD>                                                                                                                    breakdown and strain. Irritation, headache, dismay are the most common
                  <TITLE> Unordered List </TITLE>                                                                                           effects  of  noise  pollution
                  </HEAD>                                                                                                                   which  ultimately  affects
                  <BODY>                                                                                                                    work efficiency.</DD>
                  <H2>People working in the field of public health:</H2>                                                                    </DL>
                  <UL>                                                                                                                      </BODY>

                  <LI>First responders</LI>                                                                                                 </HTML>
                  <LI>Restaurant inspectors</LI>
                  <LI>Health educators</LI>
                                                                                                                                                       NESTED LIST
                  <LI>Scientists and researchers</LI>
                  <LI>Nutritionists</LI>                                                                                                    An item on a list can contain another list. The list within a list is known as a nested list or
                  <LI>Community planners</LI>                                                                                               sub-list.



                   84   Premium Edition-VII
   81   82   83   84   85   86   87   88   89   90   91