Filter (Advanced Search)
Video

Background Color | Colors

Details

You can set the background color for HTML elements:


<!DOCTYPE html>
<html>
<head>
    <title>Background Color</title>
</head>    
<body>

<h1 style="background-color:DodgerBlue;">HTML</h1>

<p style="background-color:Tomato;" align="justify">
The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It defines the meaning and structure of web content. It is often assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript.</p>

</body>
</html>


Output


Ad
Added to Favorite
Removed from Favorite