Page 90 - ConceptGP_C7_Fb
P. 90
<BODY>
<TABLE>
<CAPTION> STUDENT'S DETAILS</CAPTION>
<TR>
<TH>ADMISSION</TH>
<TH>NAME</TH>
<TH>TOTAL MARKS</TH>
</TR>
<TR>
<TD>2016/0256</TD>
<TD>Aadya Kaushal</TD>
<TD>589</TD>
</TR>
<TR>
<TD>2017/0865</TD>
<TD>Shweta Kaushal</TD>
<TD>545</TD>
</TR>
</TABLE>
</BODY>
</HTML>
STYLING TABLES USING CSS
CSS allows us to style tables for a single HTML page. It is defined using the <Style> tag in the head
section of the HTML document.
Syntax of using the <STYLE> tag:
<HEAD>
<Style>
Tag_Name Selector: We write the name of the tag to be styled here.
{
Declaration Box: We mention the tag properties that
Property_name: value; need to be styled along with the properties in it. The two
parts of a declaration box are name and value. A property
}
along with its value is called a declaration.
</Style>
</HEAD>
88 Premium Edition-VII

