Professional Documents
Culture Documents
<h2>Advantages of CSS</h2>
<hr>
<ul type=disc>
<li><b>Load Web Pages Faster:</b> If you are using <b>CSS,</b> you
don't need to write code of HTML tag attributes every time. Just write one
CSS rule of a tag and use anywhere within your program. So less code means
faster download times. </li>
<li><p><b>CSS Saves Our Time:</b></li>You can write CSS once and
then reuse same style sheet in multiple HTML pages. You can define a style
for each HTML element and apply it to as many Web pages as you want.</p>
<li><b>CSS is Easy to Maintain :</b> CSS is easy to maintain because if
you want to change the style globally then, simply change the CSS style
sheet, and all elements in all the web pages will be updated automatically.
</li>
</ul>
<h2>CSS Syntax or CSS Rules:</h2>
<hr>
In order to create a style sheet, we have to specify a set of rules known as
CSS rules or Styles. These rules are used to control the appearance of
various elements that appear in the associated HTML documents. The
general syntax for specifying the rule is: