Page 55 - Trackpad_V1_Book 7_Flipbook
P. 55
Syntax for defining a common style for more than one HTML tag.
<HEAD>
<Style>
Tag1_name, Tag2_name, Tag3_name, and so on
{
Property1_name: value;
Property2_name: value;
- -
- -
}
</Style>
</HEAD>
Write HTML codes for defining a common style for more than one HTML tag.
<!DOCTYPE html>
<HTML>
<HEAD><TITLE>A Simple Table Structure</TITLE>
<style>
Table,TH,TD
{
Border:2px solid black;
}
</style>
</HEAD>
<BODY>
<TABLE>
<CAPTION>STUDENT'S DETAILS</CAPTION>
<TR>
<TH>ADMISSION</TH>
<TH>NAME</TH>
<TH>TOTAL MARKS</TH>
</TR>
<TR>
Lists and Tables in HTML5 53

