word' for simpler `code' tags.
And shorter `
'.
Not much, but more than enough for comfortable writing.
Now to the more grand things.
IMPLIED END TAGS (#implied)
I think this is the heritage of sloppy HTML 1/2/3 programming.
You know, with shortcuts following authors’ practice.
The primordial chaos reigning in the early Internet.
Long story short, you don’t have to close `'.
Its end tag is implied and closed whenever e.g. the next opening `
'aragraph tag is encountered.
Spec: li, dt, dd, td, and some others also work this way .
This is valid processable HTML:
=================================== html ===================================
hello
another hello
one
- two
- wait, it’s not an ordered list?
==================== Implied end tags in action ====================
this ul... {
You may’ve noticed the `' followed by text.
This is another of my shortcuts.
It looks alright (indented) when opened from source `.htm' file.
It’s easy to type.
And it’s a simple substitution away from a valid ` - ' list.
}
Having these, I can generate sensible HTML with ed(1) scripts.
While having the convenience of shortcuts in standard HTML.
All according to the spec!
CLOSING TAG SPACE (#closing)
Here’s a fun one: HTML spec forbids putting anything into closing tags (anything after `
==================== Example of closing tag captions ====================
I mean, it’s not a caption per se.
And it renders as plain `
' when previewed in `.htm' source.
But once I process it with my build scripts, it expands to a proper `'.
Without the need to write all the formalities out myself.
ARBITRARY ATTRIBUTES (#attributes)
A thing partially related to closing tag contents: HTML allows anything as attributes.
This previous sentence might work well as an attribute set:
=================================== html ===================================
...
...
==================== Anything you put into tags is attribute, actually ====================
I’m using that for e.g. tables and `':
=================================== html ===================================
You may’ve noticed the ...
==================== Effective leading tag space use ====================
And I’m using `' as a shortcut for headings with IDs (`').
MAGIC IE COMMENTS AND SERVER SIDE INCLUDES (#comments)
(A line of text. On it, highlighted IE comment “[if IE]...[endif]” is added, and inside it, “oh, don’t mind me” is written. Playing with the fact that most browsers ignore IE comments.)
In case you ever opened the inspector
on some major site ,
you might’ve seen these `[if IE]' comments.
Basically Internet Explorer specific comments that only IE evaluates.
Other browsers perceive them as mere comments.
=================================== html ===================================
==================== Example IE conditional comment from mozilla.org ====================
These are useless in the modern post-IE world.
That’s why I’m exploiting them to generate format-specific content.
Say, making a link footer when generating Gemtext from this Pidgin HTML:
(I've since removed Gemtext backend from this site, unfortunately. Gemtext is too primitive.)
=================================== html ===================================
==================== GMI-specific content via IE comment ====================
Another point of reference might be
Server Side Includes .
Initially Apache-specific format of commands embedded into HTML (or, rather .shtml) pages.
Allowing file inclusion, conditional expansion, shell/CGI command execution etc.
A much needed logic-ful HTML extension.
So I’m using SSI as an inspiration, making my own `#include' and `#exec' directives.
=================================== html ===================================
as a shorthand for
==================== SSI-like inclusion command ====================
This is recognized as a mere starting tag.
Or, in case of the SSI version, as a comment.
Harmless.
PIDGIN HTML IS STILL HTML (#still-html)
Let this post be a praise to
• shortcuts of HTML,
• its simple user-facing nature,
• and the universality and power of Web Platform.
Pidgin HTML is made possible by sloppiness of the standard/quirks HTML.
It’s still valid HTML, but one that is much easier to write.
Good for authoring as a hypertext alternative to Markdown.
And other Lightweight Markup Languages.
Don’t be afraid of HTML.
Write Pidgin HTML.
CC-BY 4.0 2022-2026 by Artyom Bologov (aartaka,)
with one commit remixing Claude-generated code .
Any and all opinions listed here are my own and not representative of my employers; future, past and present.