HTML & CSS
Which <b>C ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Which
CSS code snippet
sets the
white background
for
all elements
that have the
"white"
class?
class.white{ background-color:white; }
.white{background-color:white;}
class=white { background-color:white; }
p.white { background-color:white; }
class:white { background-color:white; }
.white { background-color: white; }
Explanation
The CSS syntax for classes is:
.cssClassName {
cssPropertyName: cssValueName;
}
background
syntax
css
element
color
class
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
Related Content
How to create a white, translucent element background?...
How to change the color of a link to blue when the cursor moves over i...
How to add a background color for all items <h1>?...
<p class="red yellow">What will be the color of t...
Which class "red" can be applied only to the <h1>?...
H
TML & CSS
Quiz
Login to learn HTML & CSS
or
Read more about
HTML & CSS Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
HTML & CSS quizzes
How to make a shadow for text in gray?...
Which of the following is true about the pseudo-class ...
What is the difference between pseudo-elements :after and ...
What is the font-variant property for?...
Which color will word "text" has? <style> p{ ...
What is the property clear: both?...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment