Does a blog have to be HTML?

2024-05-03

Terence Eden wrote about his recent experience of IndieWebCamp Brighton, in which he mentioned that somebody - probably Jeremy Keith - had said, presumably to provoke discussion:

A blog post doesn't need a title.

Terence disagrees, saying:

In a literal sense, he was wrong. The HTML specification makes it clear that the element is mandatory. All documents have title.

But I think that's an overreach. After all, where is it written that a blog must be presented in HTML?

Non-HTML blogs

There are plenty of counter-examples already in existence, of course:

Terence's own no-ht.ml (now offline) demonstrated that a website needn't use HTML: no-ht.ml technically does use HTML, but the same content could easily be delivered with an appropriate non-HTML MIME type if he'd wanted. This inspired my own "page with no code", which worked by hiding content in CSS and loading the CSS using HTTP headers. I suppose this also technically required HTML, even if what was delivered was an empty file!

theunderground.blog's content, with the exception of its homepage, is delivered entirely through an XML Atom feed. Atom feed entries do require <title>s, of course, so that's not the strongest counterexample!

This blog is available over several media other than the Web. For example, you can read this blog post:

But perhaps we can do better...

A totally text/plain blog

We've looked at plain text, which as a format clearly does not have to have a title. Let's go one step further and implement it. What we'd need is:

I've implemented it! it's at:

https://textplain.blog/

In the end I decided it'd benefit from being automated as sort-of a basic flat-file CMS, so I wrote it in PHP. All requests are routed by the webserver to the program, which determines whether they're a request for the homepage, the RSS feed, or a valid individual post, and responds accordingly.

It annoys me that feed discovery doesn't work nicely when using a Link: header, at least not in any reader I tried. But apart from that, it seems pretty solid, despite its limitations. Is this, perhaps, an argument for my .well-known/feeds proposal?

Anyway, I've open-sourced the entire thing in case it's of any use to anybody at all, which is admittedly unlikely!

Links to this post in various media

https://danq.me/posts/does-a-blog-have-to-be-html

gemini://danq.me/posts/does-a-blog-have-to-be-html

spartan://danq.me/posts/does-a-blog-have-to-be-html

gopher://danq.me/1/posts/does-a-blog-have-to-be-html

finger://does-a-blog-have-to-be-html@danq.me

Links to other things

https://theunderground.blog/

https://textplain.blog/

Terence Eden

Terence Eden's (titleless) blog post

Jeremy Keith

Terence's blog post about no-ht.ml

My blog post about "the page with no code"

My blog post promoting the testing of websites in Lynx

My post on textplain.blog about it being annoying that feed discovery doesn't work via HTTP Link: tags

My post on textplain.blog about open-sourcing textplain.blog

My .well-known/feeds proposal

Source code for textplain.blog on Github