Page 41 - TP_V5.1_C7_fb
P. 41

Write HTML codes to print an unordered list.

                 <!DOCTYPE html>

                 <HTML>
                 <HEAD>

                 <TITLE> Unordered List </TITLE> </HEAD>

                 <BODY>
                 <H2>People working in the field of public health:</H2>

                 <UL>

                 <LI>First responders</LI>
                 <LI>Restaurant inspectors</LI>

                 <LI>Health educators</LI>

                 <LI>Scientists and researchers</LI>
                 <LI>Nutritionists</LI>

                 <LI>Community planners</LI>

                 <LI>Social workers</LI>
                 <LI>Public health physicians</LI>

                 </UL>
                 </BODY>

                 </HTML>


















                 DESCRIPTION LISTS

                 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.




                                                                                          Lists and Tables in HTML5  39
   36   37   38   39   40   41   42   43   44   45   46