Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 104 - 2610_Springdales_C-7
P. 104

    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>

                                                   Table : Student
                                           Roll No.    Name  Grade Gender
                                           1       Aarav   B     M
                                           2       Gauransh A    M
                                           3       Himakshi A    F
                                           4       Rakshit  B    M

                  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

                            Premium Edition-VII
                    102

| 99 100 101 102 103 104 105 106 107 108 109 |