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 ...

Get Active Server Pages 3.0 from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.