Based on the following code, write one line JS code that can be placed inside "script" tag to change the color of paragraph "Hello World "to blue. JavaScript HTML DOM Changing the HTML style: Hello World! Hello York
Based on the following code, write one line JS code that can be placed inside "script" tag to change the color of paragraph "Hello World "to blue. JavaScript HTML DOM Changing the HTML style: Hello World! Hello York
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
Related questions
Question
![Based on the following code, write one line JS code that can be placed inside "script" tag to change the color of paragraph "Hello World "to blue.
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript HTML DOM</h2>
<p>Changing the HTML style:</p>
<p id="p1">Hello World!</p>
<p id="p2">Hello York</p>
<script>
</script>
</body>
</html>](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F42b90cae-79f4-4e9c-9619-2853bf8f750b%2Fc0f99bf1-97b9-4a9f-aa56-bffda777f62a%2Fbl62lg_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Based on the following code, write one line JS code that can be placed inside "script" tag to change the color of paragraph "Hello World "to blue.
<!DOCTYPE html>
<html>
<body>
<h2>JavaScript HTML DOM</h2>
<p>Changing the HTML style:</p>
<p id="p1">Hello World!</p>
<p id="p2">Hello York</p>
<script>
</script>
</body>
</html>
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning