Question: Given this CSS what would it do? 1: h1 .header {color:blue;} Give all page headers blue font. Give all page headers a blue background. Give
Given this CSS what would it do?
1: h1 .header {color:blue;}
- Give all page headers blue font.
- Give all page headers a blue background.
- Give all h1 tags with the class of header a blue font.
- Give the h1 tag with the header ID a blue font.
- Give all h1 tags a blue background.
- Give all h1 tags blue font.
2: img[alt *=puppy] { opacity:50%; }
- Give all images an opacity of 50%.
- Give all images of puppies an opacity of 50%.
- Give all images with puppy in the beginning of their alt tag only an opacity of 50%.
- Give all images with puppy in their alt tag an opacity of 50%.
3: p::before {content: hello;}
- Add the string hello in front of all paragraphs.
- Add hello class to all paragraphs.
- Add hello to the elements before every paragraph tag.
- This is not valid CSS it would not do anything.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
