Which code snipped should be used to display an inline style? 1) <styple>p {      Margin- bottom: 0;     } </style> 2)  <link ref “stylesheet” style=”test/css” href = “style.css”>   3) <p style “padding-top: 1 rem”>paragraph  1</p> 4) <script>document.getElementsByTagName (“p”) (0). Style. Color =”blue”; </script>

New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter3: Designing A Page Layout: Creating A Website For A Chocolatier
Section: Chapter Questions
Problem 9CP1
icon
Related questions
Question

Which code snipped should be used to display an inline style?

1) <styple>p {

     Margin- bottom: 0;

    }

</style>

2)  <link ref “stylesheet” style=”test/css” href = “style.css”>

 

3) <p style “padding-top: 1 rem”>paragraph  1</p>

4) <script>document.getElementsByTagName (“p”) (0). Style. Color =”blue”;

</script>

AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Knowledge Booster
JQuery and Javascript
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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage