htmlhtml-table

HTML content not appearing in table


I am trying my hand at making a website for my small start up. Now the thing is that I want to make a central area where the background color is white and one where the background color is light grey. I made a table with the background color white and aligned it in the center, but it just appears at the bottom of the page. What is happening?

<html>
<head>
<title>Memocups</title>

</head>
<body bgcolor="#d9d9d9">
<table align="center" width="50%" bgcolor="#ffffff">
<tr>
<p><h1>Memocups</h1><p>
<p><h3>What is a memocup?<h3><p>
    <img src="images/img_1_cuponstump.jpg" width="540px" height="360px">
<p>
    A memocups is a coffee mug which has a customizable picture!<br> What makes memocups unique from all other mugs with pictures is <br>that you upload the picture you want to our website and we<br> will put it on the mug! So what are you waiting for the<br>perfect gift is only a few clicks away!</p>
</tr>
</table>
</body>
</html>

Solution

  • Simple table with three columns and two rows.

    <table border=1>
    
       <tr>
          <td>cell 1<td>
          <td>cell 2</td>  
          <td>cell 3</td>  
       </tr>
    
       <tr>
          <td>cell 4<td>
          <td>cell 5</td>  
          <td>cell 6</td>  
       </tr>
    
    </table>