1.

What should be set with text-align property so that every line has equal width like in magazines and newspapers?(a) text-align: justify(b) text-align: none(c) text-align: bottom(d) text-align: topI got this question in unit test.My question is based upon Fonts in HTML in section HTML Fonts, Tags and Elements of HTML

Answer»

Correct option is (a) text-align: justify

To elaborate: By setting text-align PROPERTY to “justify”, each line is STRETCHED so that every line has EQUAL width, LEFT and right margins are straight LIKE in magazines and newspapers. Text-align: center, text-align: right, text-align: left is also used for aligning the text at center, right and left respectively.



Discussion

No Comment Found

Related InterviewSolutions