O'Reilly logo

Active Server Pages 3.0 from Scratch by Nicholas Chase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Tidying Up—HTML Tables

Finally, let's look at the registration form itself. It's pretty ugly right now, with nothing lining up. You can try to line up the form fields with spaces, but that's ineffective. Instead, use HTML tables.

HTML tables, like database tables, are made up of rows and columns, but they don't have anything to do with data or databases, except that they are the perfect way to format data on the page. You need to know three basic sets of tags:

<TABLE></TABLE> starts and ends the table itself.

<TR></TR> defines the table rows and contains cells of data.

<TD></TD> defines the table data cells and contains the actual information you're displaying.

You use these tags to make your text boxes line up on the form, as shown in Listing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required