Basic HTML Tags - Page 4

How to display text in the center of the web page.

The simplest way to center text, or a graphic, on a
web page is to use the center html tag. Place the
opening and closing center tags just prior to and at the end of
the text or graphic to be centered, as illustrated below.
<html> <head> <title>Page 4</title> </head> <body> <center> This is an example of text placed on a web page. <br> The quick brown fox jumped over the <br>lazy dog's back 0123456789 times. <br> That sentence is one used many years ago <br>by teletype repairmen to test <br> their machines because it uses all 26 <br>letters of the alphabet and all 10 digits. </center> </body> </html>

Click here to see what the centered page looks like when displayed on a browser.
Click here to return to Page 3.
Click here to return to Page 2.
Click here to return to Page 1.
Click here to return to the Introduction Page.