Different Worlds: An Introduction to HTML

Appendix A: Example Files

FILE10.HTML : Heading alignments

Copy and paste, or type, the HTML code shown below into your text editor, and save it as "file10.html":

<html>
<head>
<title>(file10.html) Heading alignments</title>
</head>
<body bgcolor="#ffffff" text="#cc3333">
<h1 align="center">A centered heading</h1>
<h2 align="left">Left aligned</h2>
<h2 align="right">Right aligned</h2>
</body>
</html>

Alternatively, this link leads to a copy of this file, already created for you.

Return to the tutorial or return to the list of example files.


Valid HTML 4.01

http://www.users.zetnet.co.uk/dms/htmlguide/app-a10.html
© 1998-2001 Donna Smillie <dms@zetnet.co.uk>