Live data from Hacker News

Entire website in a single HTML file

css-tricks.com

191–200 of 333 posts

Re: Entire website in a single HTML file

#191
On one hand I'm excited about the future and I want to build apps for humans in spaceships, but on the other I'm very disappointed with how hard it is to get to the actual piece of information you're looking for on some of the websites filled with all this fancy stuff. Sites like this one the other hand, just don't waste my time and I like this idea of simplicity. I wish we could have that everywhere, so we can be more user friendly all around.

Re: Entire website in a single HTML file

#192
post #107

Earlier quoted context omitted.

The problem with PDF's has always been the layman can't create them without some expensive Adobe program.

This is categorically false. There have always been other tools for producing PDF (E.g. TeX) and there are also tons of free converters, print-to-PDF drivers, etc.

I have never seen anyone I would remotely describe as a layman using TeX.

Re: Entire website in a single HTML file

#193
post #169

Earlier quoted context omitted.

It makes sense from a DRM standpoint - PDFs and ePub are easy to crack if you offer it at all, so the only way to fix this is to go web-only and assume nobody will want to dig into turning that into a sharable PDF. Bonus points if you make it a SaaS test platform and get universities to buy into it, forcing every student to purchase the 'book' to receive grades.

> Bonus points if you make it a SaaS test platform and get universities to buy into it Surely this exists already? It's good and obvious an idea to not be taken already.

Multiple times over, yes, which is what the poster was alluding to.

Re: Entire website in a single HTML file

#194
post #65

Earlier quoted context omitted.

A decade ago we have this niche vBulletin forum where members would self-publish news article regarding the hobby. vBulletin BBCode is pretty limited, but then the admin started to add more and more styling support via custom BBCode. At one point we were able to create "interactive" content entirely in our heavily customized BBCode without a single line of JS, and this #target is one of the more used tricks.

That sounds like a pretty cool BBCode hack (and ultra-permissive by the admin considering...admins), I'd like to see it in action in 10-years-ago form.

I did a similar thing on my forum around 2005 but we even let members put CSS in their posts via BBCode… although it was rewritten, scoped and restricted.

But people made big “clubs” and then created these really cool semi-interactive posts using just CSS. It was really awesome what people can do.

Re: Entire website in a single HTML file

#196
post #42

Anyone here absolutely godsmacked that this is the top news on HN? The hell happened? Did I get cryogenically frozen and just woke up?

I had the same reaction. It would be like telling someone who has been using an IDE: did you know you can compile your code from the command line? And having that person genuinely be blown away.

would it blow your mind to know that the vast majority of .net devs I've ever worked with don't know anything about compiling or running a project/solution other than hitting that big green 'play' button in visual studio?

Re: Entire website in a single HTML file

#197

So to sum what I'm reading, it's a neat little demonstration of the :target pseudoclass. But: - No, the entire website isn't a single HTML file (it's also images and a CSS file) - So no, you can't download a single file and have it work offline - And no, this won't work well with screenreaders and other non-standard clients - And no, this doesn't scale well to larger sites - And no, this won't be indexed well by sear…

Out of curiosity, what aspect of the site would lead it to not being indexed well by search engines?

Edit: I just read tyingq's explanation. Is there anything else?

Re: Entire website in a single HTML file

#198
post #21

My gut instinct is that these CSS tricks may be bad for accessibility. Does anyone know how well a screen reader would deal with it?

i recently read that display:none elements are hidden from screen readers

They are. I recommend using `height:0` and `overflow: hidden` instead. Or the more advanced `.sr-only` class: https://kittygiraudel.com/snippets/sr-only-class/

Re: Entire website in a single HTML file

#199
post #84

HTML and CSS alone are really powerful. I decided not to use any JS on my personal site, but you can still have: + collapsible sections with `details` and `summary`[0] + footnotes, with navigation to/from with anchor tags. You can even apply CSS on the currently selected footnote.[1] + Semantic web that is compatible with everything and has sensible defaults so you can focus on what you're actually doing! + Tiny depl…

I have never understood why footnotes are added to the bottom when we have an interactive medium available at hand? Why not leverage and to show them in-place without breaking the flow and without listing them all at bottom? See your comment as an example. Why list all links at the bottom rather than in-place?

On HN it makes sense to me, because a long link would interrupt the flow of text. So you do a footnote to make them go out of the way. Otherwise Wikipedia has a happy medium I think; footnotes are on the bottom where you'd expect, but they show on hover so you don't have to jump there and then back.

Re: Entire website in a single HTML file

#200
post #87

Earlier quoted context omitted.

> HTML and CSS alone are really powerful https://html.energy/

> Written in pure, raw HTML. Can you feel the energy? Has several CSS files (one 2.5 Kb) and a 13Kb minified js file ( https://www.statcounter.com/counter/counter.js ) that does... something related to user tracking. I don't get it.

The Patreon page isn't HTML. Guess there are limits.
Post reply on HN