How do you think code of this slice of page should be like?
If you are thinking
─ h2/h3
┌ table
├ row (header)
├─ rows (using th tags - used for header columns, google)
├ row (anime)
├─ rows (using td tags)
├ row (anime)
├─ rows (using td tags)
─ div (stats)
Then you are correct.
Instead the developer uses this structure:
table→row→column→span (for header)
table→row→column (x5) (for table header columns)
table→row→column (x5) (for first anime in the list)
table→row→column (x5) (for second anime in the list)
table→row→column (for stats)
It has the remnants of the 90s. It's invalid and asemantic HTML.
This is XHTML4, we are not living in 90s anymore.
HTML5 has been here at least for 15 years, it's time to upgrade the layout.
Here's what wrong:
- there are no id attributes to differentiate the tables, so it's nearly impossible to apply CSS to them because developer doesn't use any classes or ids to make them distinguishable from other tables.
- Every category (watching, completed, on-hold, dropped) should have ids for them. table for watching should have id table-watching, completed series table should have table-completed for id, etc.
This is what every table looks like in Anime/Manga page (including headers, stats, and everything else):
<table border="0" cellpadding="0" cellspacing="0" width="100%">
Header column rows use <strong> to make them bold, this is too much HTML and bloats the page.
Instead you can use a CSS like below for every category table (watching, completed)
.table-category th {
font-weight: bold
}
Links such as Edit and More uses <div style="float: right"> to make them show on right, this is also too much code and can be shortened using CSS only:
.table-user-action {
float: right;
display: inline-block;
}
If A(HREF) tags use the class "table-user-action", you don't have to DIV tags anymore.
If you look at this image
Many of these scripts and stylesheets are not concatenated, increasing page load more than it should be. HTTP1 can't handle lots of simultaneous connections at once (max 6 but changeable) because many connections means increase in load time.
6 of these scripts can be combined into 1.
5 of these stylesheets can be combined into 1.
I can't tell you how slow this site is because of this bloated HTML, I really think you should reconsider restructuring the page layouts.
p.s.: I'm a web developer with >9 years of experience. |