exam questions

Exam 70-480 All Questions

View all questions & answers for the 70-480 exam

Exam 70-480 topic 4 question 73 discussion

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

You develop an HTML application that contains a table that displays a list of products. The table is defined with the following HTML markup:

You must style the table to look like the following image:

You need to implement the CSS selectors to select the rows that must have a blue background.
Which CSS selector should you use?

  • A. tr : first-line, tr :last-child
  • B. tr [line |=0, 1, 3]
  • C. tr: nth-child (0) : in-range, tr: nth-child (3) : in-range
  • D. tr: nth-child(3n+1) {background-color : blue;}
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
charlzwar
4 years, 6 months ago
D is the correct answer, its just that... there shouldnt be a space between : and nth-child, it should be like tr:nth-child(3n+1), @BadBot that why this isnt working for you. 3 represents a cycle size, n is a counter and b is the offset https://www.w3schools.com/cssref/sel_nth-child.asp
upvoted 1 times
...
BadBot
4 years, 7 months ago
D appears to be wrong (like all the others) http://jsfiddle.net/76jtL9uk/
upvoted 1 times
Sanfour
4 years, 6 months ago
I agree
upvoted 1 times
Sanfour
4 years, 6 months ago
Sorrry! the answer D is correct
upvoted 1 times
...
...
...
[Removed]
5 years, 9 months ago
D. http://jsfiddle.net/xstpzcvu/
upvoted 2 times
...
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago