Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 84 - ClickGPT V4.0 C-5
P. 84

    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-V
                     82

| 79 80 81 82 83 84 85 86 87 88 89 |