Servlets and JSPs: Lab 3

basic.css

here's a solution...

HTML Template


<html>
<head>
  <title>Shopping Cart Examples</title>
  <link rel="STYLESHEET" type="text/css" href="basic.css">
</head>

<body>

 <table width="700" cellpadding="7">
   <tr>
     <td bgcolor="#ffffff">
       <h1>Choose An Item:</h1>
       <hr>
 <table cellspacing="0" cellpadding="7" width="80%">
 <!-- Copy Starting Here to Add A new Row -->
 <tr>
   <form action="addItem" method="GET">
   <td class="yellow">
      
   <input type="hidden" name="item" value="desktop">
  </td>
   <td class="yellow">
       <strong>Desktop Computer</strong>
   </td>
   <td class="yellow"><strong>Price:</strong><br>$3400
      <input type="hidden" name="price" value="3400"></td>
   <td class="yellow"><strong>Qty:</strong><br>
      <input type="text" name="qty" size="2"></td>
   <td class="yellow">
     <input type="image" src="addtocart.gif" width="90" height="27">
   </td>
   </form>
 </tr>
 <!-- This is the Blank row separating entries -->
 <tr><td colspan="2"><br></td></tr>
 <!-- Copy Ending Here to Add a new Row -->

</table>

</body>
</html>