User Interface Designer Question:
Download Questions PDF

Suppose If background and colour should always be set together, why do they exist as separate properties?

Answer:

The reasons for this are as follows:
- It increases the legibility of the style sheets. The background property is a complex property in CSS. If it is combined with color, the complexity will further increase.
- Color is inherited, but background isn’t. This can further increase the confusion.

Download UI Designer Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know which style specification method should be used?Please distinguish between Static vs. Dynamic HTML?