How to Center Text in DIV
The "<div>" HyperText Markup Language (HTML) tag allows you to modify the way your webpage displays elements such as text and pictures. Web developers previously used the "<center>" tag to center text, but developers of the version 5.0 of the HTML language have labeled that tag as obsolete and encourage programmers to use the newer "<div>" tag instead to help minimize the risks of compatibility issues. You can center text in your webpage with a "<div>" tag in just a few steps.
Instructions
-
-
1
Open a basic text editor such as Notepad or your favorite HTML editor.
-
2
Open the HTML file of the webpage you want to edit.
-
-
3
Place a "<div align="center">" tag before the text you wish to center.
-
4
Place a "</div>" tag after the text you wish to center.
-
5
Save your HTML file and upload it to your web host by using its dedicated upload tool or an FTP program.
-
1