Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 84 - 2612_Digimind
P. 84

    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>

                       82   Premium Edition-VII

| 79 80 81 82 83 84 85 86 87 88 89 |