PDA

View Full Version : 2000 lines of code on one page ?!


dreamweaver beginner
10-21-2009, 05:29 AM
Wow,

I loaded www.amazon.com (http://www.amazon.com), then clicked on view>>source in internet explorer. There are over 2000 lines of code.

That's crazy, right?

I studied some of the code, trying to figure out how they get so many boxes on the screen. As I suspected, it's a mixture of divs and tables.

But what I didn't expect was the amount of divs, and seeing divs inside of table cells. (unless I'm not reading the code correctly).

And www.staples.com (http://www.staples.com) clocks in at about 1300 lines of code. They use tables, but also seem to use the list item <li> tag a lot.

DWcourse
10-21-2009, 02:41 PM
Why is it crazy. It obviously works well.

Corrosive
10-21-2009, 02:57 PM
I agree. Both of these will be database driven stores where products details etc. will output as HTML. Both sites are very complex with lots of scripts and styles to make things work so I guess that over 2000 lines is about right.