g
Printer Friendly Version

editor  
BellaOnline's HTML Editor
 

The HTML Table - 3

New let's put into practice what we have discussed. Let's add a 500 pixel wide table to your Template5.html file. We want the table to have three rows, 1 box inside each row, a border of 1 pixel wide, and the contents inside the cells to be centered. After you have created the table, move the "Hello World" inside the top cell (row 1 - cell 1). Then move the font tags and the "Enter Here" into the cell in the second row (row 2 - cell 1). Finally leave row 3 - cell 1 empty. Open the Template5.html file into your text editor, add the following code and save the new file as Template6.html.

Table - source code
<table width="500" border="1">
<tr><td align="center">
Hello World
</td></tr>
<tr><td align="center">
<font face="Arial" size="5" color="#f76a03">Enter
Here</font>
</td></tr>
<tr><td align="center">

</td></tr>
</table>
Note--The arrow indicates that the code is wrapped to a second line and should really be all on one line.

Template6.html - source code
<html>
<head>
<title>Hello World</title>
<meta name="keywords" content="quilts,quilting,
quilt fabrics,quilt patterns,quilt batting,
quilting books,applique,picture quilts,quilt blocks">
<meta name="description" content="Quilting site for
quilters of all types. Resources for supplies, lessons,
information and help, friendship and discussion.">
</head>
<body>
<table width="500" border="1">
<tr><td align="center">
Hello World
</td></tr>
<tr><td align="center">
<font face="Arial" size="5" color="#f76a03">Enter
Here</font>
</td></tr>
<tr><td align="center">

</td></tr>
</table>
</body>
</html>
Note--The arrow indicates that the code is wrapped to a second line and should really be all on one line.

Now open Template6.html in your web browser and take a look at your new table. You might want to bookmark this tutorial. We will be creating many tables during the next several articles.You can continue to experiment with the table by adding, removing and changing the attribute/value pairs for each tag. When you are done put the code in Template6.html back to the above code and save it again.

← Back

|


This site needs an editor - click to learn more!

HTML Site @ BellaOnline
View This Article in Regular Layout

Content copyright © 2013 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Editor Wanted for details.



| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor