News for hackers. Stuff that matters.
Re:Cool HTML elements nobody uses by franga2000 on Monday October 03, 2022 @11:39AM (#33069051)
Having used all of these in the past, here's why this is the case:

1. meter/progress - default style looks dated, styling works different on different browsers, the color scale options are confusing

2. sup/sub & 7. abbr - these are only useful for page content (as opposed to site design), which is usually WYSIWYG or something like Markdown. Many editors/parsers don't support it, at least by default.

4. map/area - it's absolute positioning, which is unusable for the variety of devices we use today

5. detail/summary - it's also more content than design and has basically no support in content editors, but it has been growing in popularity in things like GitHub READMEs where only basic markup is allowed.

6. object - hard to know what filetypes will be supported and little feedback when they aren't. It usually safer to either include a JS reader with your site or just download the file.

Re:Cool HTML elements nobody uses by Gormo on Monday October 03, 2022 @02:46PM (#33071920)
> default style looks dated

Browser defaults for all HTML elements look "dated". The visual appearance of meter, as with all elements, is adjusted via CSS.

> . map/area - it's absolute positioning, which is unusable for the variety of devices we use today

It's relative to the image dimensions, not the page/viewport.

Re:Cool HTML elements nobody uses by commandlinefan on Monday October 03, 2022 @01:00PM (#33070317)
That was my first thought... if people don't use these very old elements any more, there's probably a good Chesterson's fence-type reason. Frames seemed really cool when I first saw them too, until I actually started trying to support them.
Re:Cool HTML elements nobody uses by dylan604 on Monday October 03, 2022 @01:05PM (#33070398)
Frames died when AJAX became available. People were bastardizing frames so that they could change the content in a window without refershing the entire window.
Re:Cool HTML elements nobody uses by dspillett on Monday October 03, 2022 @01:47PM (#33071057)
That was largely iframes, though they are still in use for some things like certain methods of ad delivery. frames/framesets were often about partial updates, but mostly where script wasn't wanted so AJAX (once available) wasn't an option either.
Re:Cool HTML elements nobody uses by WorldMaker on Monday October 03, 2022 @02:06PM (#33071345)
Having lived through that era, Frames (and Framesets) were mostly killed by the proliferation of PHP on cheap hosts. A lot of Frames were used for building navigation elements without a lot of copy/pasting between HTML files (headers, footers, navigation bars, etc). The alternative to frames was either copy/pasting or ancient early static site generators. When PHP became common and cheap most people moved to server-side inclusions. These days we've come full circle back around to static sites but not returned to frames simply by how much static site generators have either become more common and/or easier/better to use.
Re:Cool HTML elements nobody uses by perilunar on Tuesday October 04, 2022 @03:24AM (#33077452)
> When PHP became common and cheap most people moved to server-side inclusions.

You don't (and didn't) need PHP for server-side includes. Apache has had them forever. A lot of cheap hosting is LAMP stack, so has PHP available, but you don't need to use it to get SSI.

https://httpd.apache.org/docs/current/howto/ssi.html

Re:Cool HTML elements nobody uses by p_l on Tuesday October 04, 2022 @04:00AM (#33077633)
At least from my experience it was easier to get PHP than SSI - often if you were getting SSI, it was in conjunction with basic PHP support.

Mind you, I'm talking about cheapest hosting possible, where 20 MB was a "step up" option.

Re:Cool HTML elements nobody uses by dspillett on Tuesday October 04, 2022 @07:49AM (#33079064)
From my experience SSI was not enabled on many hosts. If it was you usually had CGI or PHP too. Or maybe even mod_perl.

SSI was commonly enabled on university web servers IIRC, but not commercial hosts.

Re:Cool HTML elements nobody uses by WorldMaker on Tuesday October 04, 2022 @02:23PM (#33084555)
I did use SSI some. My impression at the time was that cheap hosts that rolled out Apache services and had SSI enabled also generally had PHP enabled and PHP was the "better" choice at that point because it was both more powerful and more portable given Apache's SSI was unique to it and not supported by other hosts (then or now).
Re:Cool HTML elements nobody uses by iostream25 on Monday October 03, 2022 @09:39PM (#33075889)
Frames made a side or top nav clearly separated from the content in the middle. Framesets were super useful, in that regard, in the era of dialup.
Re:Cool HTML elements nobody uses by dylan604 on Monday October 03, 2022 @02:33PM (#33071725)
>but not returned to frames

also, CSS Flex

Re:Cool HTML elements nobody uses by thiht on Monday October 03, 2022 @02:15PM (#33071461)
Meter, progress and details/summary are from HTML5 so definitely not “very old”
Re:Cool HTML elements nobody uses by bshimmin on Monday October 03, 2022 @02:52PM (#33071995)
I only bothered to check `details`, but that one dates back to at least the 2008 working draft of the HTML5 spec, which makes it ~14 years old - not absolutely ancient, but far from recent!
Re:Cool HTML elements nobody uses by chrismorgan on Tuesday October 04, 2022 @12:24AM (#33076693)
But IE and EdgeHTML-based Edge never supported <details>, so you had to polyfill it somewhat imperfectly. So one of the major browsers only gained support for it in 2020.

This was a significant dissuader, especially when you consider how you can’t transition the height (very often desirable) without added JavaScript. So <details> has really only been seeing much use in the last few years.

(The minimum possible polyfill is just under 750 bytes, supporting IE9+/Edge, requiring <summary> to be provided, and disallowing text children of <details>. The typical polyfill was more like 2–3KB.)

Re:Cool HTML elements nobody uses by clairity on Monday October 03, 2022 @01:46PM (#33071051)
to keep track of all of these in my personal css framework, i made an entry in the base stylesheet for every html element, even including a couple deprecated but widely supported ones (i also keep a list of fully deprecated elements in comments), though not every element gets styled beyond the default.

meter/progress can be styled consistently, but it's tricky because of the browser inconsistencies you mention. it took a lot of playing around with weird vendor-prefixed pseudos to get these looking similar across platforms.

sub/sub/abbr just need to be normalized first - normalize.css is a good reference for this. abbr can be useful for providing short "aside" info on a word/phrase in a semantic way.

styling detail/summary is relatively easy and they're pretty useful for FAQs and the like. i see web designers experimenting with more and more these days.

map/area, i don't use, but have seen it used on experimental designs to neat effect. and object is as you said, hard to predict for styling.

ps - it looks like chrome (105) will finally support mathML along with firefox and safari, so perhaps that will impact sub/sup usage in the future.

Re:Cool HTML elements nobody uses by sebazzz on Monday October 03, 2022 @12:21PM (#33069655)
The problem with detail/summary is that in some browsers that element is hard to style correctly and always turns out to be so limited that you ask yourself why you don’t fully develop this functionality manually and put some aria attributes on it for good WCAG2.1 measure.

Also applies to progress, for which you need to use obscure browser-specific CSS rules.

Re:Cool HTML elements nobody uses by statico on Monday October 03, 2022 @12:46PM (#33070059)
For some reason <object> makes me anxious. Is there some memory of the Flash/ActionScript days, or maybe ActiveX or something, that causes me to frown at seeing a mention of <object>?
Re:Cool HTML elements nobody uses by derefr on Monday October 03, 2022 @01:16PM (#33070573)
<object> is supposed to be for exposing modules from hosted runtimes into the host execution-context as, well, objects (in the OOP sense. Or the COM sense, I suppose.)

The original use-case would have been something like: imagine you code a game physics engine in Java, and deploy it as a Java applet. You can embed that physics engine into a page as an <object> — and then consume it as a local API using JavaScript embedded on the same page.

(And yes, this is almost certainly the real reason JavaScript is called "JavaScript." When it was created, it was precisely positioned as a glue language for consuming/driving Java-applet APIs!)

Java-applet-based APIs (and their Windows-proprietary ActiveX cousins) are dead, so there's no real reason to care about <object> any more. As long as the browser knows how to render the media if you navigate directly to its URL, you can just use an <iframe>.

Re:Cool HTML elements nobody uses by statico on Monday October 03, 2022 @01:38PM (#33070936)
Ah ha! It was Java applets that makes me dread seeing <object>/<embed> tags again. Gotta support IE, you know. Netscape will crash anyway.
Re:Cool HTML elements nobody uses by cantSpellSober on Monday October 03, 2022 @01:32PM (#33070839)
Probably, <object> to me will always be "the thing SWFObject used for rendering a Flash container"
Re:Cool HTML elements nobody uses by perilunar on Tuesday October 04, 2022 @03:32AM (#33077488)
<object> was often used for video and audio players as well as Flash, Shockwave, VRML and other plugins.

It's not needed anymore for audio or video — they have their own tags now — and plugins are dead.

Re:Cool HTML elements nobody uses by bawolff on Monday October 03, 2022 @03:14PM (#33072271)
> object - hard to know what filetypes will be supported and little feedback when they aren't.

Easier now that plugins are dead and <object> is basically equivalent to <iframe>

Re:Cool HTML elements nobody uses by cantSpellSober on Monday October 03, 2022 @01:37PM (#33070909)
Until it's easier to add bloated animations to details/summary the designers will never let us use em