Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [kbd]

questions relating to the <kbd> tag, which can be used in posts to generate "keys".

35
votes
2answers
2k views

Stricter <kbd> usage rules

A while ago I created this Meta discussion based on a few people using <kbd> tags to link to their JSFiddle demos: Stricter <kbd> formatting; disallow JSFiddle links and other non-kbd ...
53
votes
3answers
2k views

Key equivalent for <kbd></kbd>

The editor has key equivalents for all the buttons (Ctrl+B for bold, etc.). However, the most annoying thing to type is <kbd></kbd>, but there's no key equivalent for this. Can haz?
44
votes
3answers
3k views

Denoting keyboard shortcuts in Stack Exchange posts

What is the recommended method/syntax for denoting keyboard shortcuts in Stack Exchange questions and answers? For example, how would you write the following in a less verbose manner? Press ctrl, ...
23
votes
1answer
458 views

Can I place <kbd></kbd> in a comment?

I would like to use the <kbd> tag in a comment to refer to a keyboard shortcut. Is there a reason why this doesn't seem to be possible? I've tried it at the webapps stackexchange.
-15
votes
2answers
657 views

Ban <kbd>, its usage and rendering are incorrect

It seems people are not using <kbd> correctly, and its keyboard-like rendering is wrong too. For HTML5 (as used on these sites and its mobile theme) the editor's draft at w3.org currently ...
10
votes
3answers
1k views

Can we use 'kbd' according to its definition in HTML5?

Can the kbd element be used according to its definition in the HTML5 (CR) spec, or do we have further restrictions for its use on Stack Exchange sites? The editing help only gives an example, but no ...
18
votes
2answers
449 views

Can we have the nicer Apple SE/Ask Different <kbd> tag network-wide?

AskDifferent has recently got a nicer <kbd> tag: Could we get it on other SE sites too? I really like that new style.
13
votes
3answers
643 views

<kbd /> elements are still intrusive

I have just edited this post where OP is apparently not afraid to talk about his kbd. Now look at that mess. F1s fighting each other... I'm not a CSS person, but think that making he <kbd/>...
35
votes
0answers
489 views

Could the <kbd> tag be added to the editing help?

I happen to like the <kbd> tag for showing when keys should be pressed, but I can never remember it on the very few occasions that it would actually be useful. Having it in the help file would ...
18
votes
2answers
283 views

Putting things in <kbd> tags allows one to get outside the question border

Here is an example (2 image / 2 kbd): Here is another example (2 images / 1 kbd): Here is yet another example (A lot of stars in a kbd): *************************************************************...
5
votes
1answer
242 views

Stricter <kbd> formatting; disallow JSFiddle links and other non-kbd content from the <kbd> tag

Firstly, I've seen a few people using <kbd> tags to emphasise JSFiddle demo links, which goes against the W3C specification: The kbd element represents user input (typically keyboard input, ...
11
votes
1answer
194 views

Add border-radius to make <kbd> look much better

I suggest adding the following CSS to <kbd> tags (such as Space) so that the top right and bottom left corners do not look slightly odd. Solution is to round those two corners in such a way ...
10
votes
2answers
485 views

<kbd> (yes, still <kbd>) doesn't play nice with lists

Since kbd is disabled here, the pathological sample that triggered this is hosted on meta.gaming for your inspector/firebug/etc. pleasure. View the pathological example Perfectly innocent source ...
5
votes
0answers
194 views

Add keyboard shortcuts for the <kbd> tag [duplicate]

Possible Duplicate: Key equivalent for <kbd></kbd> Here's what I do in order to have the nice-looking CtrlS: Create text "<kbd>" Highlight it Copy it - CtrlC Paste it twice - (...
3
votes
1answer
113 views

<kbd> tag is messed when it got five characters [closed]

While cleaning the new and incorrect (in my opinion) vb tag from Stack Overflow today, I stumbled upon this question which had "Enter" that I wanted to format using <kbd> tags. So I did and ...
1
vote
0answers
57 views

Please add a toolbar button or keyboard shortcut for the Keyboard style [duplicate]

Possible Duplicate: Key equivalent for <kbd></kbd> I originally posted this on Meta.Superuser.com almost a year ago where it was upvoted a lot. Unfortunately, it has not been ...