Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 61 - 2633 Trackpad Pro V5.1 Class 7
P. 61

    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 to use border property 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  59

| 56 57 58 59 60 61 62 63 64 65 66 |