Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 101 - 2610_Springdales_C-7
P. 101

    {

                     border:2px;

                     border-style:solid;
                     border-color:green;

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

                     <!DOCTYPE html>
                     <HTML>

                     <HEAD> <TITLE> Students of Class 8 </TITLE>
                     <STYLE>

                     TABLE, TH, TD
                     {

                     border:2px;
                     border-style:solid;

                     border-color:green;

                     }
                     </STYLE>
                     </HEAD>

                     <BODY>

                     <TABLE>
                     <CAPTION> Table : Student </CAPTION>

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

                       <TH> Name </TH>
                                                                                          Hintbot
                       <TH> Grade </TH>
                       <TH> Gender </TH>
                                                                          Basic mistakes to avoid while writing HTML code:
                     </TR>
                                                                           Don't skip the angular brackets to close the tag.
                     <TR>                                                 Always use doctype to tell the browser what type
                       <TD> 1 </TD>                                                   of document to expect.

                       <TD> Aarav </TD>

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

                                                                                            Lists and Tables in HTML5   99

| 96 97 98 99 100 101 102 103 104 105 106 |