Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 22 - 2615_KEC
P. 22

    A2
                      FORMATTING A WEBPAGE                                                                   CHAPTER

                         Learning Outcomes

                         The student will be able to:
                            modify text properties using CSS.
                            customise backgrounds and fonts for better appearance.
                            understand margin properties for layout adjustments.

                      HTML5 provides various methods to format text on a webpage and makes it easy to alter the
                      style of individual elements on a webpage. Cascading Style Sheets (CSS) is a convenient method
                      of style the elements of a webpage. It controls various elements like the colour, font, text size,

                      etc. within a single page or the entire website. CSS can also be used to change the look of any
                      webpage elements such as paragraphs, lists, backgrounds, etc.

                      Every webpage on a website can be linked to a single style sheet, hence, any change made to the
                      style sheet formatting affects every HTML document linked to the sheet. We can use a style sheet
                      as a template by storing all the information in one place and easily change the appearance of our
                      site in one go, thus saving a lot of time in case your site has numerous pages.

                                TEXT PROPERTIES

                      Text properties are used to change the appearance of the text. The text properties and their
                      values used with the style attribute are given below:

                             Property                   Value                              Description

                                                                          Specifies the text colour to be used on the
                       color                    Name of the colour
                                                                          webpage.

                                                left, right, center,
                       text-align                                         Specifies the alignment of the text.
                                                justify

                       20   Premium Edition-VII

| 17 18 19 20 21 22 23 24 25 26 27 |