Page 188 - Web Applications (803) Class 11
P. 188

<P  style="font-family:  verdana;  font-size:  1.5em">A  computer  is  a
                     versatile machine that can be used to carry out a variety of tasks. For
                     example, you can do your homework, play games, listen to songs and do
                     many other things on a computer.</P>
                   <H2>Types of Computer</H2>
                    <P style="font-family:Arial Black; font-size: 1.5em">There are many types
                     of  computers.  Based  on  their  size,  the  types  of  computers  are,  micro
                     computer, mini computer, mainframe computer and super computer.

                   </P>
                   </BODY>
                   </HTML>



                 2.16 CSS RULES OVERRIDING

              The rules to override any Style Sheet Rule are as follows:

              Ð ÐThe highest priority is given to the inline style sheet. Therefore, it will override any rule defined in <style>...</style>
                 tags or rules defined in any external style sheet file.

               ÐAny rule defined in <style>...</style>tags will override rules defined in any external style sheet file.
              Ð
              Ð ÐAny rule defined in external style sheet file has the lowest priority and rules defined in this file will be applied only
                 when above two rules are not applicable.

                 2.17 CSS COMMENTS

              Comments are used to explain the code and may come in use if you need to edit the source code later. Browsers do not
              read comments. A CSS comment begins with /* and finishes with */ and is placed inside the <style> element.
              Example:

              /* All paragraphs will have blue font colour */
              p {
                 color: blue;
                }

                 2.18 CSS COLOURS
              HTML elements can have their colours changed using the CSS colour attribute. This attribute is typically used to change
              an element's background or font colour.
              Color values are used in CSS to specify the colour. This parameter can also be used for artistic effects like border colour.
              Colours are specified using predefined color names, or RGB, HEX, HSL, RGBA, HSLA values.

              Hex Values

              A hexadecimal colour representation is a six-digit number. The first two numbers (RR) denote a red value, the next two
              (GG) a green value whereas the next two denote a blue value (BB). Any graphics software, such as Adobe Photoshop
              or Advanced Paint Brush, can generate a hexadecimal value.



                186     Touchpad Web Applications-XI
   183   184   185   186   187   188   189   190   191   192   193