What is the difference between justify and center in <p> tag | Sololearn: Learn to code for FREE!

0

What is the difference between justify and center in <p> tag

Exaplain with example

4/11/2021 7:17:11 AM

safana abbas

2 Answers

New Answer

+3

safana abbas See here https://code.sololearn.com/WDfdWtoQ1vR0/?ref=app

0

center – Content centers between the left and right edges. White space on the left and right sides of each line should be equal. justify – Content spaces out such that as many blocks fit onto one line as possible and the first word on that line is along the left edge and the last word is along the right edge. You can see how it works by clicking on this following link. https://code.sololearn.com/WA17a147011A