Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 87 - 2626_South Point_C-7
P. 87

    Tech Fact

                            The <STRONG> and <EM> tags not only make the text bold and italic but also convey
                             that the enclosed content is of strong importance and to be emphasised, which is
                                        beneficial for accessibility and search engine optimisation.

                             Let’s CatCh uP

                       Define the following:
                       1.  <BR>
                          ______________________________________________________________________________
                       2.  <BODY>
                          ______________________________________________________________________________

                           INTRODUCTION TO CSS

                     CSS stands for Cascading Style Sheets. It is a simple design language that enables to simplify the
                     process of making web pages. It handles and describes how an HTML web page will be presented
                     on a web browser. It saves a lot of time, as one design layout can be used to make more web pages.
                     The latest version of CSS is CSS 3. CSS 3 stands for Cascading Style Sheets Level 3. Earlier, CSS 2 was
                     used.
                     Using CSS, a web designer can control the text colour, font style, paragraph spacing, column size,
                     background images, layout designs, etc.

                          Basic Structure of CSS
                     CSS  comprises of style  rules that  are interpreted by  the  web browser and then applied  to  the
                     corresponding  elements  in a document.  Its style  rule is  made  of two  parts  i.e.  ‘Selector’  and
                     ‘Declaration’. ‘Declaration’ can be further categorized into ‘Property’ and ‘Value’.

                     Selectors

                     In CSS (Cascading Style Sheets), selectors are patterns that define which HTML elements to style.
                     Selectors target specific elements or groups of elements on a web page, allowing you to apply styles
                     to them.
                     Syntax: Selector {Property:Value}
                       Selector: It signifies or points to a HTML tag, to which a style will be applied. Selector could be any
                       tag like <H1>, <TABLE>, etc.
                       Property: It is  a  type  of attribute  (such as  text  colour,  font  style,  paragraph  spacing,  etc.)  of
                       HTML tag.

                                                                                                 Using CSS in HTML5    85

| 82 83 84 85 86 87 88 89 90 91 92 |