Change the color of the element with id="para1", to "red". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Change the color of the element with id="para1", to "red".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
#para1 {<!--from www. j a v  a 2s .c  om-->
    color: red;
}
</style>
</head>
<body>

<h1>This is a Heading</h1>
<p id="para1">This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

Related Tutorials