exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 85 discussion

Actual exam question from Microsoft's 70-480
Question #: 85
Topic #: 4
[All 70-480 Questions]

Which CSS3 code fragment styles an H2 element only if it is a direct child of a DIV element?

  • A. h2 > div {background-color: #900;}
  • B. div, h2 {background-color: #900;}
  • C. div {background-color: #900;}h2 {background-color: #900;}
  • D. div > h2 {background-color: #900;}
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
https://www.w3.org/TR/CSS21/selector.html%23id-selectors

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...