Top
Best
New

Posted by encyclopedism 1 day ago

HTML Can Do That(chrisburnell.com)
438 points | 121 commentspage 2
bingemaker 5 hours ago|
<img> also supports "srcset" which can make the image component responsive. Hope they add a placeholder to it which can account for loading state.
prinny_ 2 hours ago||
I eagerly await the day we can fully style the date & time component so that we can put all those JS libraries to (a well deserved) rest.
Dwedit 2 hours ago||
Grouped Details example really needs a hand cursor. An "I" cursor for selecting text doesn't tell you that an element is interactible.
hk1337 4 hours ago||
The only one not mentioned I think should be utilized more is properly names in html forms. Everyone has gotten used to just doing things in javascript when a lot of times if you name the fields in a correct way, you can do a simple form post and let the backend validate it with little to no modifications (hopefully none if you did it correctly).

I think the big issue with some of items listed is not all the browsers either implement it or they implement it differently. I'm sure your first instinct will be Safari but Chrome, while it may implement a lot, tends to do it quite different than the others. The date picker in browsers is one feature that comes to mind.

yipinwong 3 hours ago||
JS has been in front-line for these functionalty, and HTML has been dog-slow to catch up with slow standardization (not based on usage more academical) and recommendations.

HTML can do that. yes. but adoption? welp, I don't really care nor will I use it unless I have to. I will use whatever was available in practice and continue to use them.

afavour 3 hours ago|
Odd to both complain about adoption and out yourself as someone unwilling to move to a better solution because it’s less familiar. What do you expect the answer to be here?
dawnerd 2 hours ago||
I use most of these but the one that somehow slipped past me was the name attribute for details. That's going to be incredibly useful. I want to go rip out all of the js accordions now.
yoz-y 5 hours ago||
I think it’s neat but at the same time I’m cautious about implementing an “almost feature” in what’s supposed to be a declarative language.

Now everybody needs to support it and nobody can really use it.

I’m talking about the features in work like media controls on dialog buttons.

underdeserver 1 hour ago||
Loved the Zelda reference.
hendurhance 4 hours ago||
Most people use divs for everything now. This is a breath of fresh air.
nobleach 4 hours ago|
With the exception of using divs for things that have a more appropriate element. Buttons for example - for the love of all that is holy - when I see an onclick handler and aria attributes on divs, I think, "couldn't you have restyled the button??"
xboxnolifes 3 hours ago||
Even worse, using buttons everywhere that you should use an a href.
ChadNauseam 2 hours ago|
my personal favorite, although css not html, is “field-sizing: content”. Finally with iOS 26 we can have input fields that expand to fit the content
More comments...