Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 46 - 2607_Trackpad_Pro_5.1_flipbook_C7
P. 46

    BORDER PROPERTY
                     The border property is used to define the border of a table.

                           Property                 Options               Description                  Values

                                                                      Specifies the thickness  Thickness in cm, px, pt,
                                             width
                                                                      of the border            medium or thick

                                                                                               Dotted, dashed, solid,
                                                                      Specifies the type of    double, groove, ridge,
                             border          style
                                                                      border                   inset, outset, none, and
                                                                                               hidden

                                                                      Specifies  the colour  of   Colour name
                                             colour
                                                                      all sides of the border

                     Write HTML codes to use border property.

                     <!DOCTYPE html>

                     <HTML>

                     <HEAD>
                     <TITLE>A Simple Table Structure</TITLE>

                     <STYLE>

                     Table
                     {

                     border:2px solid blue;
                     }

                     </STYLE>
                     </HEAD>

                     <BODY>
                     <TABLE>

                     <CAPTION>STUDENT'S DETAILS</CAPTION>
                     <TR>

                         <TH>ADMISSION</TH>
                         <TH>NAME</TH>

                         <TH>TOTAL MARKS</TH>
                     </TR>

                                                                                              Lists and Tables in HTML5  45

| 41 42 43 44 45 46 47 48 49 50 51 |