Page 111 - TP_Plus_v4_Class7
P. 111

Using Color Property

                 The color property is used to specify the text colour.
                 For example:                                                                Hintbot

                 <style>                                                    Add title attribute (title = “title_name”) to
                 table, th, td                                                    the table cell to add tooltip.
                 {

                     border:2px;
                     border-style:solid;

                     border-color:green;
                     background-color:orange;
                     color:blue;

                 }
                 </style>




















                 Attributes of the <TD> Tag

                 Following are the attributes used to present the cell or table data in more effective manner:

                     ROWSPAN: The ROWSPAN attribute applies when a cell is extended for more than one row, that is,
                   the cell spans for 2 or more rows instead of 1 as shown in below table.

                     Here, the cell “Sports” is taking a span of 3 rows and “Martial Arts” is taking a span of 2 rows. Example
                   for using ROWSPAN attribute is:


                               <TD ROWSPAN="3">

                                           Category                                   Types

                                                                      Badminton
                            Sports                                    Football

                                                                      Basketball

                                                                      Judo
                            Martial Arts
                                                                      Karate



                                                                                          #Lists and Tables in HTML5 109
   106   107   108   109   110   111   112   113   114   115   116