Page 108 - TP_Plus_v4_Class7
P. 108
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>
Hintbot
<TH> Roll No. </TH>
<TH> Name </TH> Basic mistakes to avoid while writing
<TH> Grade </TH> HTML code:
Don't skip the angular brackets to close
<TH> Gender </TH>
the tag.
</TR>
Always use doctype to tell the browser
<TR>
what type of document to expect.
<TD> 1 </TD>
<TD> Aarav </TD>
<TD> B </TD>
<TD> M </TD>
</TR>
<TR>
<TD> 2 </TD>
<TD> Gauransh </TD>
<TD> A </TD>
<TD> M </TD>
</TR>
106 Plus (Ver. 4.0)-VII

