TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why is HN HTML laid out in tables?

15 pointsby joeybakerover 14 years ago
Hacker News is certainly not HTML5 friendly. Heck it doesn't even validate in HTML4 http://validator.w3.org/check?uri=http%3A%2F%2Fnews.ycombinator.com%2F&#38;charset=%28detect+automatically%29&#38;doctype=Inline&#38;group=0<p>&#60;body&#62;&#60;center&#62;&#60;table border=0 cellpadding=0 cellspacing=0 width="85%" bgcolor=#f6f6ef&#62;&#60;tr&#62;&#60;td bgcolor=#ff6600&#62;&#60;table border=0 cellpadding=0 cellspacing=0 width="100%" style="padding:2px"&#62;&#60;tr&#62;&#60;td style="width:18px;padding-right:4px"&#62;&#60;a href="http://ycombinator.com"&#62;&#60;img src="http://ycombinator.com/images/y18.gif" width=18 height=18 style="border:1px #ffffff solid;"&#62;&#60;/img&#62;&#60;/a&#62;&#60;/td&#62;&#60;td style="line-height:12pt; height:10px;"&#62;&#60;span class="pagetop"&#62;&#60;b&#62;&#60;a href="http://news.ycombinator.com/news"&#62;Hacker News&#60;/a&#62;&#60;/b&#62;&#60;img src="http://ycombinator.com/images/s.gif" height=1 width=10&#62;&#60;a href="http://news.ycombinator.com/newest"&#62;new&#60;/a&#62; | &#60;a href="http://news.ycombinator.com/newcomments"&#62;comments&#60;/a&#62; | &#60;a href="http://news.ycombinator.com/ask"&#62;ask&#60;/a&#62; | &#60;a href="http://news.ycombinator.com/jobs"&#62;jobs&#60;/a&#62; | &#60;a href="http://news.ycombinator.com/submit"&#62;submit&#60;/a&#62; | &#60;font color=#ffffff&#62;joeybaker's comments&#60;/font&#62;&#60;/span&#62;&#60;/td&#62;&#60;td style="text-align:right;padding-right:4px;"&#62;&#60;span class="pagetop"&#62;&#60;a href="http://news.ycombinator.com/x?fnid=0uLs1HxN7c"&#62;login&#60;/a&#62;&#60;/span&#62;&#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;&#60;/td&#62;&#60;/tr&#62;&#60;tr style="height:10px"&#62;&#60;/tr&#62;&#60;tr&#62;&#60;td&#62;&#60;tr&#62;&#60;td&#62;&#60;table border=0&#62;&#60;tr&#62;&#60;td&#62; …………

9 comments

mixmaxover 14 years ago
Because it works. No mucking about with CSS overflows, stuff that jumps to the next line, things that don't align, etc.
评论 #2020059 未加载
maukdaddyover 14 years ago
Because despite what the CSS purists say, tables work damn well for laying out content.
评论 #2020009 未加载
评论 #2020046 未加载
评论 #2020012 未加载
profquailover 14 years ago
I rewrote the HN markup to use XHTML + CSS + MicroFormats last year, but never got a chance to re-write the actual templating code in news.arc (<a href="http://www.arclanguage.org" rel="nofollow">http://www.arclanguage.org</a>).<p>If anyone's interested in finishing that last part, let me know and I'll be happy to send you the templates and stuff I made. I also added some rudimentary support for mobile-specific stylesheets and scripts.
评论 #2023793 未加载
评论 #2022844 未加载
Mzover 14 years ago
I know a lot of folks here are actual programmers (unlike me, I mean) and can nitpick anything to death, but maybe folks have missed the part about HN being a little side project that exists to serve the goals of YC? It isn't a high priority for PG. YC is the real business. This is a free service and it serves some of YC's needs but there are no ads, it isn't monetized, etc. Unlike some of the websites folks here own, it seems to me HN does not provide enough value for pg to justify jumping through hoops backwards, blindfolded and on fire to make folks here happy with some cutting edge, WOW! coding.<p>(Personal note: Now I feel better about my sites being laid out in tables. :-P)
teejover 14 years ago
Because it doesn't matter.
评论 #2020070 未加载
评论 #2020063 未加载
olalondeover 14 years ago
Here's pg's official answer (<a href="http://news.ycombinator.com/item?id=1998708" rel="nofollow">http://news.ycombinator.com/item?id=1998708</a>) :<p>why is the UI so completely neglected?<p>Because when I spend time on HN my top priority is features that will make the content better. I believe that matches the priorities of the users-- that users would rather use a site with good stories and comments and a primitive UI than one with a slick UI and worse stories and comments. And time is a zero-sum game. Spending more time on UI = spending less on quality.<p>The focus on content quality above all is the reason you find yourself saying later "If there were any other community like this..."<p>[...]
评论 #2020038 未加载
评论 #2020081 未加载
Kilimanjaroover 14 years ago
I said it once and got downvoted to hell. I'll say it again. By removing tables and moving all styles to a separate css file you can cut page size in half.<p>HN is in need of an urgent redesign.
angdisover 14 years ago
I've all but given up giving a damn about web standards. No one _REALLY_ cares. Not the uses, not the developers, not the w3c with their open-to-interpretation "recommendations", and ESPECIALLY NOT browsers vendors who, for various reasons, aren't able to nail down a consistent interpretation of web standards.<p>The choices are to use a framework which does the shit-work for you, or resort to lowest-common denominator "whatever works" techniques like HTML tables.
beobaover 14 years ago
It doesn't claim to be HTML5 to begin with.