[←]

Markup as structure

When we think of markup it is worth pausing to consider how we actually make use of it on a daily basis. Do we use it to structure our documents or do we use it with one eye on the presentation of our documents? Is it language that markup aids, or the structure that it clarifies, or the presentation that it improves?

All markup fall into one of two baskets: things that we use regularly while writing the main content of a page, and things we use for the scaffolding. The latter type of markup rarely needs to be questioned. Because we build our pages with them, they almost always signal the structure of our pages. Common examples include HTML tags like <nav> or <article> for example.

But markdown syntax is never used this way, nor are other HTML tags like <figure> or <mark> or equivalently # and == in markdown itself.

Show or convey?

Here is a common example of how markdown designs are set up: headings at H1 level are the largest, headings at H2 are smaller, and those at H3 smaller still and so on.

When we use this markup in our document, we might consider something an important heading but in the grand scheme of things it is also obvious. For example, if you are writing a document on behalf of your local camera club and for your fellow club members, does the name of the club take on H1 with the title of your document being H2?

One might argue that the more important object is the title of the article. But you would obviously need to mention your club name somewhere. Would you use H2 first for the name and then follow that up with the title as H1? Or perhaps even H3 or H4 for the club name because it is a mere formality?

And when you decide one way or another, are you deciding actively based on what is smaller or bigger in physical size on the final copy, or are you deciding based on what is hierarchically more important? For instance, your club name is hierarchically more important -- without it there is no article, no members, no audience.

Here is another option: what if your club name is not even a heading? How about we just make it bold text?

Assistance

Think of the people who cannot see your document the same way you can. Assistive technologies read out headings and allow readers to pick where they would like to start reading, which is a bit like skimming.

If you never list your club name as a heading -- say you make it bold text -- then it never gets read upfront. If you list it as H1 then the title falls under that section. If you list it as H2, H3 or lower still, there is a good chance assistive technologies will tell readers there is nothing under that section.

Likewise when you use lists, how do you think of ordered v unordered lists? Do you prioritise numbering as a necessity because the order of items matters or because the total number of items on a list matters? Is this information relevant enough to be conveyed to users of assistive technologies? Is it cognitive overload for them but neat looking for everyone else?

Considerations

There is no way to provide absolute right or wrong answers in these scenarios. Everyone ends up using markup in ways that make sense for them, and it makes different sense for different people -- despite there being a standard or at least a recommendation.

What is important to state, however, is that it is worth considering how you use markup: do you use it to structure your document, or do you use it with one eye on how the document ends up being presented to people. Simple documents rarely pose this dilemma while more complex ones do so routinely. Would we not all love to always have simple documents to work with?