There are a few errors in this html code: All h1 tags must have the color "green" All li tags must have a font size of 18px Could you help me fix this code?             Styling H1 Tags                         My Favorite Animals                     Chipmunks             Penguins             Horses             Bees             Whales

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter9: Getting Started With Javascript: Creating A Countdown Clock
Section: Chapter Questions
Problem 11CP1
icon
Related questions
Question

There are a few errors in this html code:

All h1 tags must have the color "green"

All li tags must have a font size of 18px

Could you help me fix this code?


<!DOCTYPE html>
<html>
    <head>
        <title>Styling H1 Tags</title>
        <style>
            h1 {
                color: green;
                font-size: 35px;
                font-family: Helvetica;
            }
            li{
                font-size: 18px;
            }
        </style>
    </head>
    <body>
        <h1>My Favorite Animals</h1>
        <ul>
            <li>Chipmunks</li>
            <li>Penguins</li>
            <li>Horses</li>
            <li>Bees</li>
            <li>Whales</li>
        </ul>
    </body>
</html>

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Image Element
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning