\fP. Its end tag is implied and closed whenever e.g. the next opening \fB
\fParagraph tag is encountered. .UR https://html.spec.whatwg.org/#closing-elements-that-have-implied-end-tags Spec: li, dt, dd, td, and some others also work this way .UE . This is valid processable HTML: .P .in +4n .EX
hello
another hello
\fP when previewed in \fB.htm\fP source. But once I process it with my build scripts, it expands to a proper \fB\fP. Without the need to write all the formalities out myself. .SS Arbitrary Attributes .P A thing partially related to closing tag contents: HTML allows anything as attributes. This previous sentence might work well as an attribute set: .P .in +4n .EX ... ... .EE .in .P — Anything you put into tags is attribute, actually .P I’m using that for e.g. tables and \fB \fP: .P .in +4n .EXYou may’ve noticed the ....EE .in .P — Efficient leading tag space use .P And I’m using \fB\fP as a shortcut for headings with IDs (\fB
\fP). .SH Magic IE Comments and Server Side Includes .P In case you ever opened the inspector .UR https://mozilla.org on some major site .UE , you might’ve seen these \fB[if IE]\fP comments. Basically Internet Explorer specific comments that only IE evaluates. Other browsers perceive them as mere comments. .P .in +4n .EX .EE .in .P — Example IE conditional comment from mozilla.org .P 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.) .P .in +4n .EX .EE .in .P — GMI-specific content via IE comment .P Another point of reference might be .UR https://wikipedia.org/wiki/Server_Side_Includes Server Side Includes .UE . 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. .P So I’m using SSI as an inspiration, making my own \fB#include\fP and \fB#exec\fP directives. .P .in +4n .EX
as a shorthand for .EE .in .P — SSI-like inclusion command .P This is recognized as a mere starting tag. Or, in case of the SSI version, as a comment. Harmless. .SH Pidgin HTML is Still HTML .P Let this post be a praise to .P * shortcuts of HTML, .P * its simple user-facing nature, .P * and the universality and power of Web Platform. .P 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. .P Don’t be afraid of HTML. Write Pidgin HTML. .SH COPYRIGHT .UR https://creativecommons.org/licenses/by/4.0 CC-BY 4.0 .UE 2022-2026 by Artyom Bologov (aartaka,) .UR https://codeberg.org/aartaka/pages/commit/a91befa with one commit remixing Claude-generated code .UE . Any and all opinions listed here are my own and not representative of my employers; future, past and present.