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.

What Beautiful HTML Code Looks Like

7 pointsby malteover 15 years ago

2 comments

pbhjpbhjover 15 years ago
Interested that he's using explicit closed tags on eg &#60;img /&#62; which in html is not required. Perhaps "/" are pretty?<p><i>This is the same as in HTML4. However, due to the widespread attempts to use XHTML1, there are a significant number of pages using the trailing slash. Because of this, the trailing slash syntax has been permitted on void elements in HTML in order to ease migration from XHTML1 to HTML5. </i> ( <a href="http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_elements_with_.2F.3E_or_.3E.3F" rel="nofollow">http://wiki.whatwg.org/wiki/FAQ#Should_I_close_empty_element...</a> )
评论 #933271 未加载
KevBurnsJrover 15 years ago
I wouldn't call &#60;ul class="col"&#62; very semantic. At all.<p>&#60;ul class="people"&#62; maybe.