CSS Q1. By using the program below: Kindly change the color of the element with id="para1", to "red". This is a Heading This is a paragraph. This is another paragraph.
CSS
Q1. By using the program below: Kindly change the color of the element with id="para1", to "red".
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>This is a Heading</h1>
<p id="para1">This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Q2. By using the program below: Kindly use CSS, Set the text color for the page to "red", and the text color for <h1> to "blue".
<!DOCTYPE html>
<html>
<head>
<style>
</style>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Q3. By using the program below: Kindly Change the color of all elements with the class "colortext", to "red".
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p class="colortext">This is another paragraph.</p>
<p class="colortext">This is also a paragraph.</p>
</body>
</html>
Trending now
This is a popular solution!
Step by step
Solved in 3 steps