Question

On hover for each <span> tag that is a descendent of <h3>, set background-color to blue...

On hover for each <span> tag that is a descendent of <h3>, set background-color to blue and color to white.

/* Your solution goes here */ {
background-color: blue;
color: white;
}

0 0
Add a comment Improve this question Transcribed image text
Answer #1

html code
************

<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="main.css">
</head>
<body>
<h3>Hello</h3>
</body>
</html>


main.css
***********

h3:hover, h3:hover span {
background-color: blue;
color: white;
}

if you like my answer please appreciate with thumbs up , if you have doubt on above code let me know , thanks :)

Add a comment
Know the answer?
Add Answer to:
On hover for each <span> tag that is a descendent of <h3>, set background-color to blue...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • body { color: black; background-color:white; } p { color: orange; } Given the css rules above,...

    body { color: black; background-color:white; } p { color: orange; } Given the css rules above, predict what the following HTML code in a web page will look like. <body> <p style="color:blue;background-color:yellow;"> Here is the first paragraph </p> </body> a. The text "Here is the first paragraph" will be black with white background color. b. The text "Here is the first paragraph" will be orange with white background color. c. The text "Here is the first paragraph" will be orange...

  • CHALLENGE7.3.1: Event-driven programming ACTIVITY Reset Write a set Timeout function that changes the background color of...

    CHALLENGE7.3.1: Event-driven programming ACTIVITY Reset Write a set Timeout function that changes the background color of the h3 tag to yellow after waitTime JavaScript ch3> Header 3</h3> 5 ca href "https://.ex.ample.org/">Example.orgc/a Check 1...pptx a t

  • div <h3 class-"fancy"> Hi </h3> cul> <li>Location 1 </li>cli> Location 2</li</ul p id-greeting"> Hello </p> p>...

    div <h3 class-"fancy"> Hi </h3> cul> <li>Location 1 </li>cli> Location 2</li</ul p id-greeting"> Hello </p> p> Welcome to <span> Pizza City </span>lp> <div id- "food" class-"fancy"> Here is our menu <h3> Pizzas </h3> <ul> <li>Pepperoni </li><li> Cheese </li/ul> <h3> Sandwiches </h3> ul> li>Philly/libclis Italian</lis <luls /div> </div> Write the javascript code (one line of code) to achieve the following for the HTML above. The HTML will not be modified. Write the javascript code (1 line) to change the background color...

  • Apply the following styles: Set the width of the body element to 1000 pixels. Set the...

    Apply the following styles: Set the width of the body element to 1000 pixels. Set the width of the navigation element to 100%. Adjust the css and html to have your navigation list display horizontally (think floats and widths). Center the navigation element by setting the margin to auto. Clear the float for the section element. Set the width of all articles to 75%. Add a class to the articles that contains your favorite websites. Set the width of that...

  • Create an “About Me” HTML webpage. Use the Tag to give the page a header with...

    Create an “About Me” HTML webpage. Use the Tag to give the page a header with your Full name. The header needs to be in Plum color(Any color other than black, blue – Make the page look good). The webpage should have a background color that compliments the header color. Set the content (Anything about yourself!) of the page inside tags and use a different color for it.

  • 3. Around what absorbance would you expect the Amax to be with each color solution? (blue,...

    3. Around what absorbance would you expect the Amax to be with each color solution? (blue, green, red, yellow)

  • 3. Explain the series of color changes that can occur on thymol blue indicator by the...

    3. Explain the series of color changes that can occur on thymol blue indicator by the addition of the following solutions. In each case, give the approximate pH of the solution Color change Red to Yellow Yellow to Blue pH range 12 to 2.8 Thymol blue 8.2 to 9.1 a) A few drops of thymol blue are added to 0.1 M aqueous solution of HCl(aq). b) By adding some solid sodium acetate, NaCH,O2 to a solution of (a) e) By...

  • Name: (Last) (First) Section: 8. Flower color (20 Points) Plant X can produce magenta, blue or...

    Name: (Last) (First) Section: 8. Flower color (20 Points) Plant X can produce magenta, blue or breeding white flower plant to a true b from this cross produced blue flowers. He se blue flowers, 398 white flower- and 301 magenta flower-prou generation agenta, blue or white flowers. A gardener crossed a true int to a true breeding magenta plant. All Fl progenies lue flowers. He self-crossed the Fls and obtained 895 magenta flower-producing plants in the F2 a. What is...

  • 1. Find a1s for each of the following generating functions: contains 8 red, 8 white, 8 blue, and 5 green balls, which are identical cept for color. How many ways are there to select 20 balls? 2....

    1. Find a1s for each of the following generating functions: contains 8 red, 8 white, 8 blue, and 5 green balls, which are identical cept for color. How many ways are there to select 20 balls? 2. A b ox 3. Find a1e for each of the following generating functions: 1. Find a1s for each of the following generating functions: contains 8 red, 8 white, 8 blue, and 5 green balls, which are identical cept for color. How many ways...

  • The calmagite indicator changes from a pink to a blue color during the titration. Describe why...

    The calmagite indicator changes from a pink to a blue color during the titration. Describe why the color change occurs. This question is part of the experiment "determination of water hardness", and you should answer the question based on the following background information(abstract information and you can get the answer). In this titration Calmagite is used an indicator for both calcium and magnesium. The equation below shows the competition reaction between the calmagite indicator (In) and EDTA for Mg and...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT