1.

Which CSS property is equivalent for the attribute ?(a) color(b) margin(c) align(d) fontThe question was posed to me in an international level competition.Query is from CSS Versions in portion CSS Fundamentals, Colors and Styling of CSS

Answer»

Correct answer is (c) align

For explanation: The ATTRIBUTE

in html aligns the TEXT in center. In CSS, this is equivalent to align property which can align text to right, left or center as per the VALUE. Margin property sets the margin for an element. COLOR property is used to set/assign colour to element. Font property is for increasing/decreasing the font of text.


Discussion

No Comment Found

Related InterviewSolutions