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.

Did you know: Some closing HTML tags are optional?

4 pointsby Woods3694 months ago

3 comments

theandrewbailey4 months ago
Useful for code-golfing HTML, but the complexity of rules sounds like a maintenance nightmare for professional use.
评论 #42727168 未加载
metaloha4 months ago
I've never dived (dove? doven?) into the output of an HTML minimizer, but I assumed this was one of the things it would do - remove all optional tags while retaining the same DOM tree output.
beardyw4 months ago
HTML was intended at first to be hand crafted by scientists. That it should be forgiving is a good thing, because who wants a "this page has imperfect html" message.