Page 119 - C_GPT _V4 _class_7
P. 119
{
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 117

