w3resource
HTML exercises

CSS Properties: How to specify that the background color should be transparent?

Go to Exercise page

Solution:

HTML Code:

<!DOCTYPE html>
<html>
<head>
<meta type="utf-8" />
<title>How to specify that the background color should be transparent</title>
<style type="text/css">
#test {
background-color: transparent;
}
</style>
</head>
<body>
<div>
<p>This is a paragraph.</p>
</div>
</body>
</html>

Live Demo:

See the Pen background-transparent-answer by w3resource (@w3resource) on CodePen.


See the solution in the browser

Supported browser

Firefox logo Chrome logo Opera logo Safari logo Internet Explorer logo
Yes Yes Yes Yes No

Go to Exercise page

What is the difficulty level of this exercise?



New Content: Composer: Dependency manager for PHP, R Programming