What are Cascading Style Sheets? Why are they useful?
What will be an ideal response?
To add presentation information to web pages, web designers use a style language called Cascading Style Sheets (CSS). With CSS you can display information for different devices, lay out page designs, and control typography, color, and many other presentation characteristics.?CSS lets you control the presentation characteristics of an entire web site with a single style sheet document. For example, assume you want all of your
headings to appear green and centered everywhere on your web site. Prior to CSS you might have included the following code for every instance of an element:?Some Heading Text
?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 element in your web site. Later, if you want to change the color to red, you simply revise the style sheet rule to change every page on your site.
Computer Science & Information Technology
Some Heading Text
?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 element in your web site. Later, if you want to change the color to red, you simply revise the style sheet rule to change every page on your site.
Computer Science & Information Technology
You might also like to view...
A(n) ____________ is a property that appears in a base class, and must be overridden in a (non-abstract) derived class.
a. base property b. abstract property c. derived property d. public property
As you organize the large and small tasks required to complete a project, you can ____________________ each task to members of your team and track the progress of the entire project.
Fill in the blank(s) with the appropriate word(s).