table drops down too far

liunx

Guest
Hi,<br />
I have a simple table, but it unexpectedly drops way down on the page, eventhough I don't have any text or anything between it and the <body> tag?? I would like the beginning of this table to be near the top of the page. Thanks.<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/HTML4.01/strict.dtd"><br />
<html><br />
<head><br />
<link rel="stylesheet" type="text/css" href=http://www.htmlforums.com/archive/index.php/"http://www.ramonred.net/styles/reynor.css"><br />
<title><br />
Stick Game<br />
</title><br />
</head><br />
<h1>Stickgame.com</h1><br />
<body><br />
<table><br />
<tr><td bgcolor="#cc0000"><a href=http://www.htmlforums.com/archive/index.php/"tourres.html">Tournament Calendar</a></td></tr><br><br />
<tr><td bgcolor="#cc0000"><a href=http://www.htmlforums.com/archive/index.php/"eddietwoteeth.html">Those who passed on</a></td></tr><br><br />
....and so on.<!--content-->You prbably want to start by coding valid HTML. The <h1> tag goes in the body, nto between teh head and body.<br />
<br />
No tags can be between teh </tr> and <tr> <br />
<br />
I don't know wht a line-break is going to do there, but it certainly is going to contribute to screwed up rendering.<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/HTML4.01/ strict.dtd"><br />
<html><br />
<head><br />
<link rel="stylesheet" type="text/css" href=http://www.htmlforums.com/archive/index.php/"http://www.ramonred.net/styles/reynor.css"><br />
<title>Stick Game</title><br />
</head><br />
<body><br />
<h1>Stickgame.com</h1><br />
<table><br />
<tr><br />
<td bgcolor="#cc0000"><a href=http://www.htmlforums.com/archive/index.php/"tourres.html"> Tournament Calendar</a><br />
</td><br />
</tr><br />
<tr><br />
<td bgcolor="#cc0000"><a href=http://www.htmlforums.com/archive/index.php/"eddietwoteeth.html">Those who passed on</a><br />
</td><br />
</tr><br />
<br />
_____________<br />
there. you should code valid. you don't need <br>-tags inbetween <tr>-tags. <br />
<br />
<tr> means "table row", that means that when you type </tr>, that you are finished with that row, and therefore do not need a <br> (break)<br />
<br />
<td> means "table data", and means that for each td, you'll get a new cell to type your data in. <br />
<br />
hope that helped a little bit.<!--content-->Thanks so much. What a great forum.<br />
<br />
I got it straightened all out. I guess I should pay better attention to valid html.<br />
<br />
Any recommendations for sources? books?<br />
<br />
...<br />
Ramon<!--content-->you don't really need books. for reference to valid html, you can use <!-- m --><a class="postlink" href="http://www.w3c.org">http://www.w3c.org</a><!-- m --><br />
<br />
i think this is a little hard to understand sometimes, but you'll get used to it.<br />
<br />
for easier and a little more basic functions, i found <!-- m --><a class="postlink" href="http://www.echoecho.com">http://www.echoecho.com</a><!-- m -->. it has great tuorials on html and css.<br />
<br />
you should also check out w3c site on standards, because you should only code by the santdards, that means something that all webbrowsers can read. these days internet explorer (duh) have a lot of functions that no other webbrowser has, but these functions are not following the standards, and you should not use them.<br />
<br />
if you follow these things, you'll be a great coder in no time.<!--content-->
 
Back
Top