Students Empire

Learn Something New
Home

table border



The table element defines the border attribute.


Most browsers draws borders around the table and each individual cell.


		        <!DOCTYPE HTML>
		    <html>
		    <body>
		      <table border="1">
		        <tbody>
		          <tr>
		            <th>Favorite:</th>
		            <td>A</td>
		            <td>G</td>
		            <td>M</td>
		            <td>500</td>
		          </tr>
		          <tr>
		            <th>2nd Favorite:</th>
		            <td>O</td>
		            <td>O</td>
		            <td>L</td>
		            <td>450</td>
		          </tr>
		        </tbody>
		      </table>
		    </body>
		    </html>