Explore 100's Of Free Video Tutorials

Keep Learning, Keep Coding & Keep Sharing

CSS

CSS text-align & text-align-last

Notes:

CSS text-align property:
It is used to specify the horizontal alignment of the text
Values: left | center | right | justify

CSS text-align-last property:
It is used to specify the horizontal alignment of the last line in the paragraph
Values: left | center | right | justify

Interview Questions:

1. Which CSS property is used to align text horizontally?
a. align
b. text-align
c. horizontally-align
d. align-left
Answer: b