Re: kbd role

Alan Isaac <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2/16/2017 3:05 PM, David Goodger wrote:
> https://www.w3schools.com/tags/tag_kbd.asp lists the following "phrase tags":
>
> <em> Renders as emphasized text
> <strong> Defines important text
> <code> Defines a piece of computer code
> <samp> Defines sample output from a computer program
> <kbd> Defines keyboard input
> <var> Defines a variable
>
> Currently Docutils outputs <em>, <strong>, and <code>, but not the
> other three. If we add <kbd>, must we add the last two? If not, why
> not?


It is easy to imagine an argument for adding all of these.
It is also easy to imagine an argument for having none of these.
Since no criterion for inclusion has been offered, it is difficult
to choose between these arguments.

My personal reason for inquiring about `kbd` (but not about
`samp` or `var`) is purely frequency of use.  I use a `kbd`
role almost as often as a `code` role (and much more often
than `strong`).

I suppose the best general argument turns on the value of a semantic web.
Here the `kbd` tag seems quite valuable in improving webpage accessibility.
But again, I was not motivated by general arguments, but simply
by my personal frequency of use.

Cheers,
Alan

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.