Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 40 - 2607_Trackpad_Pro_5.1_flipbook_C7
P. 40

    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

| 35 36 37 38 39 40 41 42 43 44 45 |