Page 34 - PortGPT_V2.1_C7_Flipbook
P. 34

3                               Lists and Tables





                                                                    in HTML5










                      Let’s surf

                          Creating Lists                                  Creating Tables



                   Let’s PLug-in

                     Write the HTML code (start from <BODY> tag) to display the following output on a web page:











                     _____________________________________________________________________________________
                     _____________________________________________________________________________________

                     _____________________________________________________________________________________

                     _____________________________________________________________________________________





                  Similar to MS Word, you can also create lists and tables on the web pages in HTML5. HTML5 allows

                  you to create different types of lists and tables. In the previous class, you have learned the basic tags
                  of HTML and their attributes. In this chapter, you will learn how to create lists and tables in HTML5.


                         CREATING LISTS

                  A list is a collection of related items that can be used to represent information in pointed form. In

                  our daily routine, we have to write many things such as list of items required for a festival and list of
                  steps to make a dish. List feature of HTML5 allows us to display this type of information on the web
                  page in an organised manner. There are three types of lists named ordered list, unordered list and
                  definition list that can be created in HTML5 to display the items in the form of list. Let us learn about
                  these in detail.





                  32    Premium Edition-VII
   29   30   31   32   33   34   35   36   37   38   39