MCQs > Website Designing & Development > Front-end Development > You want to create striped table rows using CSS without adding a class to any element. Which CSS would correctly apply the background color to every odd row in your table?

Front-end Development MCQs

You want to create striped table rows using CSS without adding a class to any element. Which CSS would correctly apply the background color to every odd row in your table?

Answer

Correct Answer: Tr:nth-child(2n+1) { background-color: #ccc; }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Front-end Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Front-end Development Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it