News for hackers. Stuff that matters.
Re:The <output> Tag by froobius on Saturday October 11, 2025 @04:57AM (#45547657)
So there's useful html tags from 2008 that no one uses or knows about... How can that be the case? Because there's just so many tags? Because people don't read the docs? Because the benefits are not obvious?
Re:The <output> Tag by meindnoch on Saturday October 11, 2025 @05:53AM (#45547856)
Most sites today are not using HTML in the way it was originally envisioned. They use something called "DHTML" instead. The D stands for DIV, because people seldom use any other tag. E.g. in normal HTML you would use the TABLE, TR and TD tags to build a table. In modern DHTML (aka DIV-HTML) people build the table from fixed size DIVs, and calculate the column sizes via JavaScript.
Re:The <output> Tag by asjo on Saturday October 11, 2025 @06:07AM (#45547922)
The D in DHTML is usually short for "Dynamic".

Around the time that abbreviation became fashionable using a lot of DIV elements also did, but that wasn't what the "D" stood for.

https://en.wikipedia.org/wiki/Dynamic_HTML

Re:The <output> Tag by 1718627440 on Saturday October 11, 2025 @06:08AM (#45547930)
I think that was known by meindnoch and was a joke.
Re:The <output> Tag by throw-the-towel on Saturday October 11, 2025 @10:24AM (#45549386)
I'd say DHTML was more of a thing in the early 2000s when we were still using tables for layout. The divs came later, when the abbreviation had fallen out of fashion because all HTML kinda was dynamic by default.
Re:The <output> Tag by junon on Saturday October 11, 2025 @08:01AM (#45548479)
Not sure if a joke but this is factually inaccurate.
Re:The <output> Tag by wwweston on Saturday October 11, 2025 @08:58AM (#45548816)
Accurate to some substantial usage, whatever definitional inaccuracy or backronym action is in play.

Descriptivism usually reflects some reality no matter the intended prescriptives.

Re:The <output> Tag by junon on Saturday October 11, 2025 @09:02AM (#45548837)
No, sorry. It's factually inaccurate. DHTML stood for Dynamic HTML, it was an extension before Javascript and whatnot was added.
Re:The <output> Tag by wwweston on Saturday October 11, 2025 @09:42AM (#45549087)
Be sure to correct all the people who are using the term “cool” for things other than relative temperature, as it was originally defined.

See also the dictionary fallacy, and again descriptivism vs prescriptivism.

Additionally, even leaving alone the div/dynamic language issue, there really isn’t a point in usage history where DHTML came without JS — believe me, I was doing it when the term first came into usage. JS was required for nearly all dynamic behavior.

Re:The <output> Tag by jama211 on Saturday October 11, 2025 @02:31PM (#45551460)
Man I live for takedowns like these, nice work
Re:The <output> Tag by junon on Sunday October 12, 2025 @09:38AM (#45558165)
what takedown?
Re:The <output> Tag by jama211 on Sunday October 12, 2025 @02:05PM (#45560342)
You can work it out, I believe in you.
Re:The <output> Tag by 1659447091 on Sunday October 12, 2025 @12:33AM (#45555247)
> See also the dictionary fallacy, and again descriptivism vs prescriptivism

DHTML is an acronym that expands to: Dynamic HyperText Markup Language.

There is no dictionary fallacy or descriptivism vs prescriptivism or defined meaning. It was simply an industry standard way to shorten all those words.

Changing one of the letters to stand for something else reassigns the pointer to something else entirely, or is the making of a joke, which I think the above may have been.

Re:The <output> Tag by jama211 on Sunday October 12, 2025 @02:08PM (#45560368)
Wow, you should try out for the olympics with those acrobatics. I didn’t realise it was possible to miss every point so hard.
Re:The <output> Tag by k33n on Saturday October 11, 2025 @09:07AM (#45548870)
DHTML is literally just HTML that is dynamically modified by JavaScript. DHTML became a term when JavaScript became ubiquitous. It was not an extension.
Re:The <output> Tag by junon on Saturday October 11, 2025 @09:18AM (#45548921)
Javascript was not ubiquitous when the term DHTML was last seriously used. And yes, CSS and javascript were extensions at the time, not very widely supported across all browsers.

We had table based layouts and then divs when CSS started to take off, mostly used by artists rather than companies at first.

Javascript had vanishingly limited uses at first, too. I don't remember exactly how long it took us to get XHR but before that we had "Comet frames", before iframe security was given much focus. Javascript couldn't do that for a while. It was also dodgy and considered bad practice for quite a while, too.

I don't remember when the term javascript was even really used in regular vernacular but DHTML was not so much referring to CSS as it was the myriad of weird mechanisms introduced to make pages dynamic. It was never "Div-based HTML" or whatever, the div craze came way later once CSS was Good Enough to eschew table layouts - after which, Dreamweaver died and photoshop's slice tool finally got removed, and we started inching toward where the web sits today.

I also do distinctly recall needing a doctype for DHTML for some browsers.

Re:The <output> Tag by randallsquared on Saturday October 11, 2025 @09:39AM (#45549058)
> Javascript was not ubiquitous when the term DHTML was last seriously used.

It wasn't as fast or as usable as it is today, but Javascript has been in every mainstream browser since before Microsoft started pushing "DHTML".

Interestingly, in my memory, it seemed like we had JS for a long time before DHTML, but it was only a couple years between Eich writing it and IE4, which was the start of the "DHTML" moniker. Looking back at the timeline, everything seems much more compressed than it felt at the time.

Re:The <output> Tag by junon on Saturday October 11, 2025 @11:25AM (#45549879)
That could be. And yeah, DHTML came and went pretty quickly even by today's standards.
Re:The <output> Tag by k33n on Saturday October 11, 2025 @09:28AM (#45548971)
DHTML was just JavaScript that mutated the DOM. That’s literally all it ever was. There was also not a DHTML doctype. There was also not anything even called “an extension”. There were Java applets, ActiveX controls, and ActionScript -> JavaScript bridges, which the concept of DHTML (dynamic HTML) eventually fully replaced.

Divs weren’t a “craze”. They were popularized by the (brand new) XHTML spec, which did have its own doctype.

Re:The <output> Tag by Izkata on Saturday October 11, 2025 @01:30PM (#45550984)
> I don't remember when the term javascript was even really used in regular vernacular

2004 or 2005. Gmail and Google Maps were a "holy crap this is actually possible?" for a lot of people, both technical and non, and was when javascript switched from mostly-ignored* to embraced.

*Just minor enhancements, outside of technical people mostly only known to MySpace users who wanted to add a little flair to their page. XmlHttpRequest was almost entirely unknown even in technical spaces until gmail showcased interaction without page refreshes.

Re:The <output> Tag by junon on Sunday October 12, 2025 @09:39AM (#45558172)
Not sure why you're being downvoted, but actually yeah, this isn't far off from my recollection either.
Re:The <output> Tag by BrendanEich on Monday October 20, 2025 @06:14PM (#45650101)
JS was ubiquitous when DHTML was pushed by Microsoft, because DHTML required JScript aka JS.

CSS was not there in the '90s because Netscape didn't implement, and MS did its own subset.

JS and CSS both suffered from wildly inconsistent support between Netscape and IE, but JS at root had interop enough to support hotmail, later OddPost, much more. CSS had no extension mechanism based on JS then, so it suffered browser-specific support that was IMHO worse than JS suffered. No way to polyfill.

Re:The <output> Tag by BrendanEich on Monday October 20, 2025 @06:15PM (#45650107)
(There was no DOCTYPE for DHTML. The one for HTML 4.01 was not equivalent to a DOCTYPE for DHTML.)
Re:The <output> Tag by epcoa on Saturday October 11, 2025 @10:38AM (#45549499)
What does SHTML stand for?
Re:The <output> Tag by andrewflnr on Saturday October 11, 2025 @10:54AM (#45549629)
SPAN-HTML, obviously.
Re:The <output> Tag by chuckhoupt on Saturday October 11, 2025 @10:54AM (#45549627)
The classical answer is that the S stands for Server-Side-Incude (SSI). SSI source typically uses the extension .shtml. More info:

https://en.wikipedia.org/wiki/Server_Side_Includes

Re:The <output> Tag by DonHopkins on Saturday October 11, 2025 @12:29PM (#45550419)
It's short for SHiTML.
Re:The <output> Tag by tingletech on Saturday October 11, 2025 @08:13PM (#45553953)
This is a legacy of old apache configurations, the common mime type configuration files used .html to send the straight file, and .shtml to turn on the server side processing instructions. Server side includes could be static files or executable scripts that generated text on STDOUT. If you were using a lot of server side includes, it was cleaner just to turn on server side parsing for the whole site.
Re:The <output> Tag by m-hodges on Saturday October 11, 2025 @03:39PM (#45552035)
Man, I love it when I find a good <table>

https://matthodges.com/posts/2025-09-30-visidata/

Re:The <output> Tag by 1718627440 on Saturday October 11, 2025 @06:08AM (#45547925)
For anybody wondering, there are 112 of them:

    a
    abbr
    address
    area
    article
    aside
    audio
    b
    base
    bdi
    bdo
    blockquote
    body
    br
    button
    canvas
    caption
    cite
    code
    col
    colgroup
    data
    datalist
    dd
    del
    details
    dfn
    dialog
    div
    dl
    dt
    em
    embed
    fieldset
    figcaption
    figure
    footer
    form
    h1
    h2
    h3
    h4
    h5
    h6
    head
    header
    hgroup
    hr
    html
    i
    iframe
    img
    input
    ins
    kbd
    label
    legend
    li
    link
    main
    map
    mark
    menu
    meta
    meter
    nav
    noscript
    object
    ol
    optgroup
    option
    output
    p
    picture
    pre
    progress
    q
    rp
    rt
    ruby
    s
    samp
    script
    search
    section
    select
    slot
    small
    source
    span
    strong
    style
    sub
    summary
    sup
    table
    tbody
    td
    template
    textarea
    tfoot
    th
    thead
    time
    title
    tr
    track
    u
    ul
    var
    video
    wbr
Re:The <output> Tag by vaylian on Saturday October 11, 2025 @05:17AM (#45547721)
Because a lot of web frontend developers are addicted to <div> soup and fancy CSS and JavaScript libraries.
Re:The <output> Tag by grumbel on Saturday October 11, 2025 @05:54AM (#45547864)
It's also due to browser not doing anything useful with the additional tags, if I use <article>, <section> or <div> doesn't make any difference, my browser doesn't use that to generate a TOC or let me open an <article> in a new Tab. Even the, in theory, incredible useful <time> tag seems to be completely invisible to my browser and many other potentialy useful tags don't exist in the first place (e.g. <unit> would be useful).
Re:The <output> Tag by sodapopcan on Saturday October 11, 2025 @08:02AM (#45548484)
> It's also due to browser not doing anything useful with the additional tags,

It's clear that you are sighted and never use reader mode.

Re:The <output> Tag by crabmusket on Saturday October 11, 2025 @08:51AM (#45548771)
Exactly this. I really wish browsers would use semantic html to make content more accessible for me, a sighted user! Why does my browser not give me a table of contents I can use to navigate a long page?

I think the parent has a good point: browsers don't do anything with these tags for sighted users, who are unfortunately the majority of developers. If they were to notice benefits to using semantic tags, maybe they'd use them more often.

Re:The <output> Tag by wwweston on Saturday October 11, 2025 @09:02AM (#45548836)
Developers of all people should be in a position to notice how tag semantics can keep them oriented in a document or target behavior and styling…
Re:The <output> Tag by ninkendo on Saturday October 11, 2025 @08:55AM (#45548800)
It’s interesting, because if you imagine sites actually using these tags to be maximally compatible with reader mode and other accessibility modes, they’re setting themselves up perfectly to be viewed without ads.

I use reader mode by default in Safari because it’s essentially the ultimate ad blocker: it throws the whole site away and just shows me the article I want to read.

But this is in opposition to what the website owners want, which is to thwart reader mode and stuff as many ads in my way as they can.

It’s possible good accessibility is antithetical to the ad-driven web. It’s no wonder sites don’t bother with it.

Re:The <output> Tag by sefrost on Saturday October 11, 2025 @12:59PM (#45550701)
Reader mode seems to still work if you have a div with article text in it. I would be interested to see a comparison of what works and what doesn’t if such a reference exists though!
Re:The <output> Tag by TheFlyingFish on Saturday October 11, 2025 @09:26PM (#45554292)
Reader mode is based on a whole slew of heuristics including tag names, class names, things like link-to-text-content ratio, and other stuff I can't recall. IIRC it considers semantic tag names a stronger signal than e.g. class names, so having <article> in your page isn't necessary but helps a lot.
Re:The <output> Tag by threatofrain on Saturday October 11, 2025 @07:43AM (#45548361)
We just don't have enough tags that we can really take advantage of on a semantic or programmatic level, and that has lead to other tags getting overloaded and thus losing meaning.

Why don't we just have markup for a table of contents in 2025?

Re:The <output> Tag by fleebee on Saturday October 11, 2025 @07:54AM (#45548433)
That'd open a whole new can of worms. Browsers are already gargantuan pieces of software even with the relatively primitive tags we have today. We don't need to further argue with each other what the <toc> tag should look and behave like, deal with unforeseen edge cases and someone's special use cases which end up requiring them to implement the whole thing with <ol>s and <li>s anyway.
Re:The <output> Tag by threatofrain on Saturday October 11, 2025 @08:00AM (#45548471)
Then let the edge cases use <ol> and <li>, and in some sense all those website style simplifiers that comes built-in with Safari will just have to deal with those edge cases. Similarly we have a built-in date picker, and if you don't think it's good enough then build a better one.
Re:The <output> Tag by 1718627440 on Saturday October 11, 2025 @06:10AM (#45547939)
Yes, I think that is what browser should spend money on instead of inventing new syntax. Google Chrome still doesn't support alternate stylesheets. But I refuse to not use them simply because a rich company can't be bothered to implement decades old standards.
Re:The <output> Tag by kitd on Saturday October 11, 2025 @06:09AM (#45547932)
Maybe not the browser itself, but in combination with semantic CSS [1], it's incredibly useful.

[1] - eg https://picocss.com/

Re:The <output> Tag by cluckindan on Saturday October 11, 2025 @08:59AM (#45548819)
Not true. Using semantic HTML and relying on its implicit ARIA roles allows the browser to construct an accurate AOM tree (Accessibility Object Model) which makes it possible for screen readers and other human interface software to create TOCs and other landmark-based navigation.
Re:The <output> Tag by lelanthran on Saturday October 11, 2025 @02:32PM (#45551470)
> Not true. Using semantic HTML and relying on its implicit ARIA roles allows the browser to construct an accurate AOM tree (Accessibility Object Model) which makes it possible for screen readers and other human interface software to create TOCs and other landmark-based navigation.

Sure, it allows the browser to do that. GP is complaining that even though browsers are allowed to do all that, they typically don't.

Re:The <output> Tag by Vinnl on Saturday October 11, 2025 @05:11PM (#45552747)
The point of the reply was that they actually do. It's just not obvious that they do if you don't use that method yourself.
Re:The <output> Tag by runarberg on Saturday October 11, 2025 @10:57AM (#45549651)
If you want a specific behavior for <time> then write a browser plugin which e.g. converts the <time> content to your local time.

But if you are a developer you should see value in <article> and <section> keeping your markup much much nicer which in turn should make your tests much easier to write.

Re:The <output> Tag by diego_sandoval on Saturday October 11, 2025 @02:39PM (#45551531)
Semantic tags were never widely used, even before the overuse of JavaScript.
Re:The <output> Tag by b_e_n_t_o_n on Saturday October 11, 2025 @06:48AM (#45548084)
> Update 7 Oct 2025: Some screen readers have been found not to announce updates to the tag, so explicitly emphasising the role attribute might be worthwhile for now until support improves: <output role="status">.

Maybe it's because like most things html/css related, it's a semi-broken implementation of a half-feature?

Re:The <output> Tag by gregoriol on Saturday October 11, 2025 @05:11AM (#45547705)
Maybe because most HTML tags are not well supported by browsers, because they are doing by themselves only half of what a developer would want, hard to style, hard to enhance the native behavior, ... most recently-added tags have those problems (ex: <progress>), this one from 2008 is an even better example
Re:The <output> Tag by em-bee on Saturday October 11, 2025 @06:40AM (#45548045)
please elaborate, how is <output> a better example for only doing half of what a developer would want? what is missing?
Re:The <output> Tag by Timwi on Saturday October 11, 2025 @05:11AM (#45547701)
People who already have a habit of solving a problem a specific way are generally unlikely to switch when a new solution appears unless it is considerably easier. If it's not immediately easier, it will feel easier to continue the ingrained habit.
Re:The <output> Tag by Devasta on Saturday October 11, 2025 @05:26AM (#45547763)
Because no one cares about HTML except as a payload carrier for the real website: the JavaScript output from React/Tailwind/Typescript compilation.

You have to remember, this is an industry that thinks having code without syntax errors was too unreasonable a requirement for XHTML, there is no reason to expect them to know anything beyond div and maybe a dozen other tags.

Re:The <output> Tag by atoav on Saturday October 11, 2025 @05:07AM (#45547693)
My guess would be that most people just copy (mimic) what is already there. I sometimes work as a freelance web administrator and I can assure you 95% of people who create websites for a living have never read through a list of HTML tags, have only a slight idea of the semantic web and in the end they are more like people who cobble existing things together and are out of their depth pretty quickly.

Not that this is problematic per se, everybodies milage may vary and we're all out there to learn. But if I told one of them about the output tag thry probably wouldn't even understand why that would be important.

Re:The <output> Tag by j45 on Saturday October 11, 2025 @05:01AM (#45547669)
In some cases, because there was a period of time where it might not have been in HTML in all browsers, and javascript was used instead, and then HTML had it.

Then no one checked, and the javascript train had already left the station.

Re:The <output> Tag by ReptileMan on Saturday October 11, 2025 @05:15AM (#45547715)
I mean with modern javascript/dom manipulation tools the only tag you really need is div.

In before comments - not advocating for div only development, just that the nature of www moved from html with some js to well ... only js.

Re:The <output> Tag by 1718627440 on Saturday October 11, 2025 @06:06AM (#45547917)
Then you might as well use a single instance of the canvas tag.
Re:The <output> Tag by throw-the-towel on Saturday October 11, 2025 @10:37AM (#45549486)
Doesn't Flutter do exactly that?