What are cascading style sheets why are they useful

This preview shows page 6 - 8 out of 8 pages.

We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
CompTIA Security+ Guide to Network Security Fundamentals
The document you are viewing contains questions related to this textbook.
Chapter 5 / Exercise 4
CompTIA Security+ Guide to Network Security Fundamentals
Ciampa
Expert Verified
2. What are Cascading Style Sheets? Why are they useful?
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
CompTIA Security+ Guide to Network Security Fundamentals
The document you are viewing contains questions related to this textbook.
Chapter 5 / Exercise 4
CompTIA Security+ Guide to Network Security Fundamentals
Ciampa
Expert Verified
CSS lets you control the presentation characteristics of an entire Web site with a single style sheet doc- ument. For example, assume you want all of your <h1> headings to appear green and centered every- where on your Web site. Prior to CSS you might have included the following code for every instance of an <h1> element: <font color = “green”><h1 align=”center”>Some Heading Text</h1></font> Using a CSS rule, you can express the same style as follows: h1 {color: green; text-align: center;} You can place this rule in an external style sheet and then link every page on your site to that style sheet; the single rule controls every <h1> element in your Web site. Later, if you want to change the <h1> color to red, you simply revise the style sheet rule to change every page on your site. PTS: 1 REF: 5-8 3. Describe the two syntaxes HTML5 offers and explain the reasons why you may choose to use one over the other.
PTS: 1 REF: 16-17

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture