Source Code:
This is some text.
This text will be center-aligned.
This is some text.
Result:
W3Schools.com
- Try it yourself