html with <pre> tag and line spacing?

html

New member
I'm trying to work with html and the <pre> tag. However, when I use the <pre> tag, the spacing for that cell of the table gets messed up and the contents of the cell shift to the top of the table. Can someone let me know how to use the <pre> tag and make sure the contents of the cell are centered. I tried making the cell height smaller too, but it seems this won't work with <pre>.

Here is an example about what I'm talking about:
Check out the cell with the word "first" and the empty line that appears after the word in the cell.

<html>
<body>

<table border="1" >
<tr>
<td height=5><pre>First</pre></td>
<td>Row</td>
</tr>
<tr>
<td>Second</td>
<td>Row</td>
</tr>
</table>

</body>
</html>

Thanks!
 
Back
Top