Question
In the following exercises, make use of the followingdeclarations (one per line): background-color: silver ; font-size: larger ; These will be referred to as the
In the following exercises, make use of the followingdeclarations (one per line): background-color: silver ; font-size: larger ;
These will be referred to as the background declaration and the text declaration, respectively.
(a) Write CSS style rules that apply the background declaration to div elements and the text declaration to strong elements.
(b) Write a single style rule that applies both the background and text declarations to both p and em elements.
(c) Write a single style rule that applies the background declaration to HTML elements having a value of Nevada for their id attributes as well as to elements belonging to the shiny class
(d) Write a style rule that applies the text declaration to span elements that belong to the bigger class.
(e) Write a style rule that applies the text declaration to span elements that are descendants of other span elements.
(f) Write a style rule that applies the background declaration when the cursor hovers over a hyperlink
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started