If you only have one or a few blocks of text to center, add the style attribute to the element's opening tag and use the "text-align" property. In the example below, we've added them to the <p> tag. Notice that the value of the property "text-align" is set to "center" to indicate the element is to be centered
Answers & Comments
Answer:
If you only have one or a few blocks of text to center, add the style attribute to the element's opening tag and use the "text-align" property. In the example below, we've added them to the <p> tag. Notice that the value of the property "text-align" is set to "center" to indicate the element is to be centered