how to write a div style=text-align:center in html code example
Example 1: text align css
p{
text-align:center;/*values: center, left, right, etc...*/
}
Example 2: css text align center
body {
text-align: center;
}
Example 3: text align justify
text-align: justify;