Page 53 - TP_Prime_V2.2_Class7
P. 53

border-color:green;

                 }
                 </STYLE>
                 Let us create a table using the above properties.


                 <!DOCTYPE html>
                 <HTML>

                 <HEAD> <TITLE> Students of Class 8 </TITLE>
                 <STYLE>                                                                                                    HTML—LISTS AND TABLES

                 TABLE, TH, TD
                 {

                 border:2px;
                 border-style:solid;

                 border-color:green;
                                                                                                                          51
                 }

                 </STYLE>

                 </HEAD>
                 <BODY>
                 <TABLE>

                 <CAPTION> Table : Student </CAPTION>

                 <TR>
                   <TH> Roll No. </TH>

                   <TH> Name </TH>
                   <TH> Grade </TH>

                   <TH> Gender </TH>
                 </TR>

                 <TR>
                   <TD> 1 </TD>

                   <TD> Aarav </TD>
                   <TD> B </TD>

                   <TD> M </TD>
                 </TR>

                 <TR>

                   <TD> 2 </TD>
                   <TD> Gauransh </TD>
   48   49   50   51   52   53   54   55   56   57   58