View the step-by-step solution to:

<div> <h3 class="fancy"> Hi </h3> <ul> <li>Location 1 </li><li> Location 2</li></ul> <p id="greeting"> Hello </p> <p> Welcome to <span> Pizza City

<div>

  <h3 class="fancy"> Hi </h3>

  <ul> <li>Location 1 </li><li> Location 2</li></ul>

  <p id="greeting"> Hello </p>

  <p> Welcome to <span> Pizza City </span> </p>

  <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 </li><li> Italian</li></ul>

  </div>

</div>


1-Write the javascript code (one line of code) to achieve the following for the HTML above. The HTML will not be modified.

2-Write the javascript code (1 line) to change the contents of the "Hello" paragraph to "Goodbye"

3-Write the javascript code (1 line) to change the background color of the "Here is our menu" div to be blue. 

4-Set all unordered lists that are inside the div with id "food" to have red text.

Top Answer

&lt; script &gt; //the javascript code (one line of code) to achieve the following for the HTML above. The HTML will not be... View the full answer

1.PNG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online