Different Worlds: An Introduction to HTML

Appendix A: Example Files

FILE12.HTML : Table cell alignments

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

<html>
<head>
<title>(file12.html) Table cell alignments</title>
</head>
<body bgcolor="#ffffff" text="#000080">
<table border="1">
<tr>
  <td align="center" valign="middle">This table cell is center and middle aligned.</td>
  <td align="left" valign="top">This table cell is left and top aligned. This table cell is left and top aligned. This table cell is left and top aligned. This table cell is left and top aligned. This table cell is left and top aligned.</td>
</tr>
<tr>
  <td align="left" valign="top">This table cell is left and top aligned. This table cell is left and top aligned. This table cell is left and top aligned. This table cell is left and top aligned. This table cell is left and top aligned.</td>
  <td align="right" valign="bottom">This table cell is right and bottom aligned.</td>
</tr>
</table>
</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-a12.html
© 1998-2001 Donna Smillie <dms@zetnet.co.uk>