Page 47 - TP_V5.1_C7_fb
P. 47
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

