Answers for "html paragraph background color"

2

how to add style to p tag in html

<h1 style="color:blue;">This is a Blue Heading</h1>
<!DOCTYPE html>
<html>
<head>
<style>

 body {background-color: powderblue;}
h1   {color: blue;}
p    {color: red;}

</style>
</head>
<body>

<h1>This is a 
 heading</h1>
<p>This is a paragraph.</p>

</body>
</html>
Posted by: Guest on March-14-2020
10

html text background-color

<p style="color: #ffffff;">Lorem ipsum...</p>				<!-- text -->
<p style="background-color: red;">Lorem ipsum...</p>		<!-- background -->
<h1 style="border: 2px solid #00ff00;">Lorem ipsum...</h1>	<!-- border -->

<!-- 3 ways to define colors -->
<h1 style="background-color: rgb(255, 99, 71);">Lorem ipsum...</h1>
<h1 style="background-color: #ff6347;">Lorem ipsum...</h1>
<h1 style="background-color: hsl(9, 100%, 64%);">Lorem ipsum...</h1>
Posted by: Guest on September-05-2021

Code answers related to "html paragraph background color"

Browse Popular Code Answers by Language