Basic HTML Version

|  | Table of Contents |  | View Full Version

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

    {

                     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   79

| 76 77 78 79 80 81 82 83 84 85 86 |