Live data from Hacker News

Write HTML Like It's 1999

bradleytaunt.com

131–140 of 191 posts

Re: Write HTML Like It's 1999

#131
I'm a huge fan of the `* { border: 2px dotted black; }``` snippet he uses to debug the flow of his content. I've been doing this for years now (albeit my snippet is a bit different) but it helps so much for understanding the document.

Re: Write HTML Like It's 1999

#133

Earlier quoted context omitted.

Handy bookmarklet javascript:(function(){Array.from(document.body.getElementsByTagName('*'), e => e.style.outline = '2px dotted orangered');})();

Why not inject css instead? That would be more effective

how do you mean?

Re: Write HTML Like It's 1999

#135

In 1999 I think I had just switched from HotDog to HomeSite. Honourable mention to HoTMetaL and Microsoft FrontPage, which I tried then abandoned for various reasons. Eventually I started using a plain text editor (BBEdit).

Oh my God, FrontPage, I used to edit pages built with it by hand for money. Having flashbacks now. everywhere.

Re: Write HTML Like It's 1999

#136

Earlier quoted context omitted.

iframes have had a wild ride in acceptance 1999 - Cool and Clever 2005 - Horrible 2010 - Horrible but sometimes necessary 2015 - Awesome

> 2015 - Awesome Huh, what happened?

We started injecting everyone else's JS everywhere.

Re: Write HTML Like It's 1999

#137

Earlier quoted context omitted.

iframes have had a wild ride in acceptance 1999 - Cool and Clever 2005 - Horrible 2010 - Horrible but sometimes necessary 2015 - Awesome

> 2015 - Awesome Huh, what happened?

Limitations imposed upon embedded scripts from foreign domains by technologies like CORS and the like, combined with modern styling abilities.

You can place another service's elements on a page that look like they're actually part of the page layout while the JS running them can freely communicate with the service's backend without having to bother with cross domain problems.

Think of all the support/chat widgets you see on modern-day pages, they're all iframes.

And obviously: tracking all the things!

Re: Write HTML Like It's 1999

#138
As someone who has a pretty serious visual impairment, I find the attitude of so many of these comments really... disappointing.

You wouldn't believe how much effort people with poor vision have to go to, to consume the modern web.

You can't even take simple things for granted like being able to zoom. So many websites pollute their page with pointless navigation elements that block most of the content when the page is zoomed.

Or say pages that try to be elegant, centering everything with some margin. Sure, it looks "great" if no one zooms it. If you do, you wind up consuming the content in three or four word chunks...

Or even worse: Elements that have hardcoded minimum widths. When you zoom, nothing reflows and you wind up having tons of content "off screen."

At best, this is annoying because you have to constantly scroll horizontally.

At worst, you're screwed because for some bizarre reason, scroll bars never appear.

I'll wrap my rant up here but I'll leave this:

Do you really want the web to be like reality, where the needs of a few are so often ignored simply because of some trait?

"Oh, there are so few of them, why bother..." "Oh, they don't matter because "

Sound familiar? I'm sure you can fill in the blanks.

The web gives us a unique opportunity to improve on the real world in so, so many ways.

Don't waste it.

Re: Write HTML Like It's 1999

#139

Any reason it is bad to use divs with aria attributes over for a radio button choice? Because radio buttons are a pain to style and require all sorts of hacks to look nice. And in a real job you sometimes get asked to brand things, not just let the default styles come through.

Aria attributes aren’t enough to make an element accessible. You still need to set up listeners for keyboard navigation, you need to make the element focusable, you need to remember the aria attributes for labeling, etc. Chances are you are going to miss some of these. Better use a battle tested third party library for these, or—better yet—the native ``.

Edit: Radio buttons are not hard to style[1]. Just use `appearance: none`[2] and style them as you wish with custom background colors and svg masks and whatnot.

---

1. https://codepen.io/anon/pen/qGeJWL

2. https://developer.mozilla.org/en-US/docs/Web/CSS/appearance

Re: Write HTML Like It's 1999

#140
"Reach out and chat with me on Twitter. That way your thoughts aren't lost forever on this site."

Funny I feel the other way. Twitter is rolling html flypaper with people stuck to it. You can hear their muffled voices and see their wiggling legs as they go past. Pages static'd with comments are forever, like web.archive.org forever.

Post reply on HN