Page 78 - 2611_SmartGPT Pro V(5.0) C-7
P. 78
<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>
PURE CSS (Cascading Style Sheets) was first proposed by Håkon Wium Lie on October 10, 1994
FACT while working with Tim Berners-Lee at CERN.
76 Computer Science (V5.0)-VII

