How do I make an HTML table using the <div> tag?

  • Thread starter Thread starter Fishbowl
  • Start date Start date
F

Fishbowl

Guest
I'm making a web page for a couple of friends and myself using multiple tables (somewhere around 104 tables of information). So far, using HTML tables, I have 5 tables complete, and 500 lines of HTML code. I'm wondering if there is an easy way to import a template for each of these tables (so it is possible to edit values in the main code) using the <div> tag to import them. Is there any way this can be done in much less than 10,000 lines of code, like the HTML tables would take up?
 
The "best" way to do it, provided the tables are all the same would be to use PHP. It would dramatically cut down you code.

By using a variable to hold frequently used code and then pulling the variable as needed you could make a whole table in just 1 line of code each.
 
Back
Top