Exercise:

Use the HTML DOM to center-align the text of <p>.

Hint: element.style.textAlign = "left|right|center|justify"

Edit This Code:
Result:
Correct Code:
Correct Result:
Exercise - © w3schools.com