Answers for "How to add a background color in HTML?"

10

html background color

<html>
 
<body style="background-color:red;">
  <p> test <p/> 
  <body/>
  </html>
Posted by: Guest on February-23-2020
14

how to make a background color in html

<body style="background-color: #fff">
  <!---this will change the body color---!>

</body>
Posted by: Guest on May-06-2020
4

html how to change background color

<body style="background-color:powderblue;">
<p style="background-color:tomato;">This paragraph has a red background.</p>
</body>
Posted by: Guest on September-04-2020
10

background color in html

<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 "How to add a background color in HTML?"

Browse Popular Code Answers by Language