Question

Given the following HTML5 code: <div class=”myclass”>     <h1>Hello</h1>     <ol>         <li>Item1</li>         <li

Given the following HTML5 code:
<div class=”myclass”>
    <h1>Hello</h1>
    <ol>
        <li>Item1</li>
        <li>Item2</li>
    </ol>
</div>

Which of the following CSS3 rules will apply a red background to the list items?

div.myclass { background-color: red; }

li { background-color: red; }

ol li { background-color: red; }

All of the above

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

Answer : All of the above

All the below options will apply a red background to the list items:

div.myclass { background-color: red; }

li { background-color: red; }

ol li { background-color: red; }

Add a comment
Know the answer?
Add Answer to:
Given the following HTML5 code: <div class=”myclass”>     <h1>Hello</h1>     <ol>         <li>Item1</li>         <li
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
  • 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...

  • Use a style sheet to define the following rules and implement the given HTML code. Please...

    Use a style sheet to define the following rules and implement the given HTML code. Please put your style information within the same file as the HTML code. Rules: • Hyperlinks using the nodec class should display no decoration. • Hyperlinks should display text in white with a green background color when the mouse pointer is held over the link. (use the hover pseudo-class) • Unordered lists not nested within any other lists should be displayed in blue text and...

  • Given the following HTML code (You are not allowed to add additional id or class to...

    Given the following HTML code (You are not allowed to add additional id or class to the file test.html) test.html <h1>Down the Rabbit-Hole</h1> <div class="bb" >        <p class="bb" >Alice was beginning to get very tired ...</p>    <br/>    <p> Alice </p> </div> <div id="aa">    <p>Down, down, down. Would the fall never come to an end</p>    <div> <p class="bb" >I wonder if I shall fall right …</p> </div> </div> <h1> Upcoming Event </h1> <p> Excitng Event: 101 </p> <p> A limited number...

  • 6. (HTML) Given the following HTML document: <html> <head> <title>Grandma Cafe</title> </head> <body> <h1>Menu</h1> <ol> <li>Café...

    6. (HTML) Given the following HTML document: <html> <head> <title>Grandma Cafe</title> </head> <body> <h1>Menu</h1> <ol> <li>Café Latte</li> <li>Café Mocha</li> <li>Cappuccino</li> </ol> <img src="https://businessexchange.ca/wp-content/uploads/2018/05/coffee- shop-1.jpg" /> </body> </html> a. [4] Sketch approximately how it will be displayed in a web browser. (For media items such as images, just draw a box labelled with the media type.) b. [2] What is the protocol, hostname, top-level domain name, and file name of the image being linked here?

  • Question 27 1 pts Consider the following code: public class MyClass<T> { [... body of the...

    Question 27 1 pts Consider the following code: public class MyClass<T> { [... body of the class definition ...] } which of the following are legitimate lines of code in the body of the class definition? public T returnThis(T in) { řēturn īn; public double doubleInTin)*{, a. 'řēturn in.dõubtēvatue } 2. public T1 value; public void. doybleIn(T in) { rētuřň in } Question 28 1 pts Which of the following are items worth testing? all of the listed choices instance...

  • PLEASE HELP: EASY CODE. Using your template create a webpage that contains a div. Give the...

    PLEASE HELP: EASY CODE. Using your template create a webpage that contains a div. Give the body element the id of TOOscary. Give the div the id of ghost. At the bottom of the page (just before the closing body tag) insert a script element. In the script element insert an assignment statement to save the content of the webpage using the variable candy. Hint: candy= document.getElementById(‘TOOscary’).innerHTML; We want to save it so we can bring it back after we...

  • Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />...

    Code for the movies page: <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="stylesheet" type="text/css" href="style.css" /> <title>Daniel's Movie Page</title> </head> <body> <a href="hobbies.html">Hobbies</a> <h1>Movies and Actors</h1> <ol> <li class="ol-list1">Gravity</li> <li>Avenger</li> <li>Marshal</li> <li>Interstellar</li> <li>Dark Knight</li> <li>Superman</li> </ol> <ul> <li class="ul-list1">Robet Downey jr.</li> <li>Sharuk Khan</li> <li>Ranbir Kapoor</li> <li>Sidhhart Malhotra</li> <li>Angela Joli</li> <li>Leonardo DiCaprio/li> </ul> <h2>Favorite Movie</h2> <p> <b>Gravity:</b> The movie portrayed what happens to an astronaut if he/she is pushed away from spaceship.It was terrifying how much...

  • Hello Ive been tryting to add the CDN of jquery to my html code and I...

    Hello Ive been tryting to add the CDN of jquery to my html code and I keep getting an error Need help with this : ​​ Navigate to www.code.jquery.com in your Chrome browser. On this page, you'll find different stable versions of jQuery. Select uncompressed for jQuery Core 3.3.1. Copy the <script> tag that is given to you. In store_hours.html, paste that tag directly above your body's closing tag. This is the jQuery CDN. After you paste this code into...

  • JavaScript (Please debug this code) When a user enters a string in the input box, the...

    JavaScript (Please debug this code) When a user enters a string in the input box, the program is designed to add the string to an array. When the array reaches a certain length, the program displays all the users' entries in a list on the page. When you finish debugging, the user's entry in the input box should be cleared each time the submit button is clicked. Additionally, after five strings are submitted, the entire list of submitted strings should...

  • Hello, I am designing a website for my class. I am using HTML/CSS/Jscript. I need to...

    Hello, I am designing a website for my class. I am using HTML/CSS/Jscript. I need to have my text in the body, white. All text and the picture centered but how do I have margins on the left and right side?. I have a figcaption and I dont know have to place it under the picture but I am having a hard time. Can you help me? Thank you! HTML <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet"...

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
ADVERTISEMENT