Stack Exchange Network

Stack Exchange network consists of 174 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 tag, which can be used in posts to generate "keys".

5
votes
1answer
72 views

When should I use <kbd> vs [tag:tagname]? [duplicate]

I've seen that the <kbd> element is used in a lot of questions and is used to reference a tag. But I've also seen questions that use [tag:tagname] for the same purpose. They look a little bit ...
4
votes
2answers
91 views

Should 'click' be used with <kbd>?

When denoting a key combination, for example Ctrl+Shift+click, should click be shown as a button as well for better readability? (as such: Ctrl+Shift+click)
-1
votes
1answer
73 views

Was the Ask Different <kbd> style implemented?

While browsing SE, I came across a request to implement Ask Different's <kbd> tag style network-wide. (Can we have the nicer Apple SE/Ask Different <kbd> tag network-wide?.) The accepted ...
12
votes
1answer
146 views

<kbd> value is grey and seems to be disabled

The value between <kbd> and </kbd> is grey and it seems to be disabled: grey I remember that it looked better (probably the text was black = more visible) in the past, but now it looks ...
0
votes
1answer
71 views

<kbd> not working anymore? [duplicate]

I had that some days ago (I removed the tags then), now I see that from someone else: Configure OpenSSH server not to require password *or* key for a particular user 4th comment to the question.
5
votes
1answer
131 views

<kbd> tags in headings are too small

The styling for the <kbd> tags is, as we all know, quite nice: Enter, e.g. However, these are too small in headings: Saving files with CtrlS Body text, with CtrlS again. Note that the ...
1
vote
1answer
335 views

Making a visual button link in Stackoverflow for links

I often see people having html buttons for links in stack overflow? how do I visually show a button on stack overflow how do <button><a href="www.jsfiddle.com">link to fiddle</a>&...
10
votes
3answers
993 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 ...
5
votes
1answer
130 views

KBD and Meta-tags are not working in Android-App

This can be seen here but I've attached a picture as well:
4
votes
0answers
97 views

Inappropriate use of `kbd` tag [duplicate]

I've noticed a handful of users (mis)using the kbd tag to style links into something that looks like a button. For example: StackOverflow This smells a lot like HTML ≤ 4 to me. I don't think there's ...
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 ...
11
votes
1answer
180 views

Marking up an asterisk with <kbd>

I've experienced a problem with <kbd> tag and the asterisk * on Stack Overflow. How to reproduce: <kbd>*</kbd> bug <kbd>*</kbd> which provides: bug <kbd>**</...
5
votes
1answer
241 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, ...
0
votes
0answers
59 views

Allow <kbd> in comments [duplicate]

Simple feature request really. Currently, using <kbd>Ctrl</kbd> in a comment, prints the code without markdown. If code highlighting tags are allowed, I don't see why <kbd> shouldn't ...
13
votes
0answers
77 views

Could we get a different font for <kbd> text?

We're able to use <kbd> tags to indicate keyboard input, but I noticed an issue with the font used: I vs. l Is that a lower-case L or an upper-case i? You have to view the post's source to ...
8
votes
2answers
103 views

Suggestion to provide [kbd:] markup to simplify <kbd></kbd>

Obviously, this is not a big deal, but typing <kbd>F</kbd><kbd>o</kbd><kbd>o</kbd> to get Foo is a little tedious, and those who need to use it could save a few ...
15
votes
2answers
229 views

Is there any way to get the Windows key in an answer using <kbd>?

Really, title says it all. I can only do WIN. I want:
3
votes
1answer
120 views

Add a “format as keystroke” button to the post editor

I edited a question on SO. My edit was approved, but only after it was modified to change an instance of code formatting to keystroke formatting. I did not know how to format as a keystroke, so it ...
6
votes
1answer
170 views

<kbd>CTRL</kbd> is rendered in multiple lines with Google Chrome 21/22

CTRL looks weird as the chars don't fit the 26px width of the key, making it a multiline. Making it one pixel wider, resolves it on my machine. Ctrl fits nicely.
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 ...
22
votes
1answer
420 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.
8
votes
2answers
4k views

Markdown syntax for `<kbd>foo</kbd>`

Especially on websites like Ask Different, <kbd>foo</kbd> is used a lot to markup keys on a keyboard correctly. It would be super useful to have a simple Markdown syntax for it. There’s ...
7
votes
0answers
239 views

Best practices for denoting keyboard shortcuts

(Well, there actually is a Q on this topic with a [faq] tag. But I don't see any consensus there so I'm trying to open a [discussion] in attempt to make one so that someone can possibly post it there.)...
13
votes
3answers
642 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/>...
18
votes
2answers
275 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): *************************************************************...
-15
votes
2answers
654 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 ...
11
votes
1answer
188 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 ...
1
vote
0answers
56 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 ...
50
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?
18
votes
2answers
447 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.
5
votes
0answers
193 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 - (...
6
votes
2answers
130 views

Overlap of <kbd> elements

Two <kbd> elements on adjacent lines overlap each other. On SO the overlap is small enough that the bottom border is still visible, so it looks ok, but on the SE betas the overlap is worse and ...
10
votes
2answers
478 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 ...
2
votes
1answer
241 views

Kbd does not format correctly for < (less than) and > (greater than)

Sometimes the less than and greater than keys are important, especially in gaming. Unfortunately markdown doesn't seem to agree. It renders the code <kbd><</kbd> as just <. When ...
35
votes
0answers
478 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 ...
42
votes
3answers
2k 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, ...