How to Center a Web Page Without CSS?
Hypertext Markup Language (HTML) was created to give content providers a way to display information on the World Wide Web in a organized and structured manner. HTML’s limited ability to format and style information has since been superseded by the power and flexibility of Cascading Style Sheets (CSS). Many Web designers use CSS so Web pages display centered in the Web browser. Use the HTML “<center>” tag to accomplish the same thing. Have a question? Get an answer from a Nerd now!
Instructions
-
- 1
Open your text editor and load the Web page you wish to have centered.
- 2
Locate the opening <body> and closing </body> tags in your HTML code. Add a blank line after the opening <body> tag and a blank line before the closing </body> tag.
-
Sponsored Links
- Create Website TemplatesFree Site Builder, Templates & 3rd Party Scripts. View Details Here!
www.HostGator.com
- Create Website TemplatesFree Site Builder, Templates & 3rd Party Scripts. View Details Here!
- 3
Insert the tag <center> in the blank line after the <body> tag. Add </center> in the blank line above the </body> tag.
- 4
Click on the File menu and select “Save” to save the Web page file.
- 5
Open the computer’s file manager and locate the Web page you just edited. Right-click on the file name or icon and open the file in the Web browser. The Web page will display centered on the screen in the browser.
- 1