These solutions answer the CSS exercises from the jQuery exercise page.
.my-p {
font-family: Arial, sans-serif;
font-size: 20px;
background-color: yellow;
}
<p class="my-p">This is line 1</p>
<p class="my-p">This is line 2</p>
<p class="my-p">This is line 3</p>
<link rel="stylesheet"
href="custom.css">
See CSS tutorials.
<p id=p1 class=my_p>This is line 1</p>
<p id=p2 class=my_p>This is line 2</p>
<p id=p3 class=my_p>This is line 3</p><style>
.my_p{
font-size:20px;
background-color:yellow;
}
</style><link rel='stylesheet' href='custom.css' type='text/css'>
Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.