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.
thead:only-child, tbody:after, table:before
B.
tr [line | -0, 1, 3]
C.
tr:first-of-type, tr:last-of-type
D.
tr:first-line, tr:last-child
Explanation:
Header (line 0), first line and third line.
The answer is C (100%)
Yes, I’m pretty sure too.
The correct answer is C!
“C” is the correct one
http://stackoverflow.com/questions/29201561/is-there-syntax-for-a-tr-line-specific-css-selector
B does not work at all.
C is the Answer
http://codepen.io/anon/pen/jWEaVR?editors=110
C is the correct Answer
http://jsfiddle.net/tbfzfg94/45/
I agree. C is correct.
D would also work if instead of first-line would be first-child.