Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 101 - logicode 2609 C6
P. 101

    Code
                          5      Write the HTML code to present the given web page using CSS text properties.

                     <!DOCTYPE HTML>

                     <HTML>
                     <HEAD>
                     <TITLE> Using Text Properties </TITLE>

                     </HEAD>
                     <BODY STYLE="BACKGROUND-COLOR: LIGHTYELLOW;">
                     <H1     STYLE="COLOR:          DARKBLUE;        TEXT-ALIGN:CENTER;            TEXT-DECORATION:
                     UNDERLINE;">The Importance of Reading</H1>
                     <P STYLE="TEXT-ALIGN: JUSTIFY; COLOR: DARKGREEN;"> Reading is one of
                     the most important skills we can develop. It opens up new worlds, sparks
                     creativity and helps us learn about different perspectives.
                     </P>

                     </BODY>
                                                                                    Create a web page to display
                     </HTML>
                                                                                      information about the sun.

                               FONT PROPERTIES

                     Font properties control text appearance, including family, size, style and weight. The table lists
                     common properties, values and descriptions:

                             Property Name                        Value                           Description

                                                    Name of the font.                 This property sets the font of the
                      FONT-FAMILY
                                                                                      text.
                                                    Size  of  the font as a number  This property controls the size of
                      FONT-SIZE
                                                    with units like px, pt, em, etc.  the text.
                                                    NORMAL, BOLD, BOLDER or           This property sets the weight of
                      FONT-WEIGHT
                                                    LIGHTER                           the text. It can be numeric values.
                                                    NORMAL, ITALIC or OBLIQUE         This property defines the style of
                      FONT-STYLE
                                                                                      the font.

                        Code     Write the HTML code to present the given web page using CSS font properties.
                          6

                     <!DOCTYPE HTML>

                     <HTML>
                     <HEAD>

                                                                                                   CSS3–Styling Basics  99

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