<html> <head> <style type="text/css"> td {font-family:arial} h2 {font-family:arial} p {font-family:arial} </style> </head> <body> <body background="background.jpg"> <!--Defines the attributes of the table--> <table border="0" cellpadding="5" cellspacing="5" bgcolor="#E8E8E8" align="center" width="80%"> <tr> <th colspan="3"><h2>Welcome to this website</h2></th> </tr> <tr> <td width="20%" valign="top"><p>Links should go here.</p></td> <td width="40%" valign="top">Some content should go here</td> <td width="40%" valign="top">Here is some more content</td> </tr> </table> <p style="font-size:10px" align="center" > ® This site was created by Ally</p> </body> </html>
I also have 2 specific questions:
Q1
Quote
Search engines use your headings to index the structure and content of your web pages.
What if I have my heading in a table, as I do above? Would it be best to leave it the way it is, or get rid of the table heading ("th") completely? Or is "th" also indexed in search engines?
Q2 Why can't valign="top" just be incorperated in the definition of the table? For eg:
<table border="0" cellpadding="5" cellspacing="5" bgcolor="#E8E8E8" align="center" width="80%" style="font-family:Arial" valign="top">
EDIT: I *think* I cleaned up the code a little by using an internal style sheet.
This post has been edited by Allizoid: 03 February 2010 - 05:18 AM