HTML & CSS · Senior · Question 50 of 75

A designer insists on fully custom styles for every control in a complex form. What's a sensible approach?

Explanation

Native controls give you accessibility, keyboard support, autofill and mobile pickers for free. Most of their appearance can be changed via appearance: none, accent-color, pseudo-elements and :checked / :focus-visible. Hand-made <div> widgets require full ARIA pattern implementations - expensive and risky. Discuss the trade-offs with the designer.

Further reading

Problem with a question

HTML & CSS · Senior · question 50

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz