Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 101 - 2626_South Point_C-7
P. 101

    Output:

                                                                 Using margins

                                                              Tech Fact

                                          CSS font properties may be rendered differently across
                                       various browsers and operating systems due to differences in
                                             font rendering engines and default system fonts.

                      Let’s PraCtiCe

                        Write the following code and see the output:

                        <!DOCTYPE HTML>
                        <HTML>
                        <HEAD> <TITLE> Mars </TITLE>
                        <STYLE>
                        h2 {
                        text-align: center; color: green; font-size:20px;
                        }
                        p{
                        font-family: Arial, sans-serif;

                        }
                        </STYLE> </HEAD>
                        <BODY>
                        <H2>Mars</H2>
                        <P>Distance from Sun: 227.9 million km</P>
                        <P>Orbital Period: 687 days</P>
                        <P>Diameter: 6,779 km</P>
                        </BODY>
                        </HTML>

                                                                                                 Using CSS in HTML5   99

| 96 97 98 99 100 101 102 103 104 105 106 |