What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 128 Stack Exchange communities.

How are people showing keyboard "glyphs" on Super User? I looked at the Markdown help page and it didn't show anything regarding this.

Here is an example (question has been deleted since this was asked, and now requires 10k SU rep): http://superuser.com/questions/257/what-new-win7-keboard-shortcuts-have-you-found-most-useful

share|improve this question
4  
your example link is now broken –  molecules Sep 13 '11 at 11:42
    
A very easy way to find this out would have been click the edit button on a post where you see this and look at their code. –  Jasper Dec 21 '12 at 17:38
    
@Jasper: sure, but I was specifically wondering if this was something implemented in stackoverflow's flavor of Markdown. Turned out it was just straight up html –  Jorge Israel Peña Dec 22 '12 at 2:03
    
@JorgeIsraelPeña In fact, the "magic" isn't in the html. but in the css and could have been applied to a span just as easily. –  Jasper Dec 22 '12 at 5:00
    
@Jasper Ah yes, I misunderstood your first comment (though I made no claims of there being any "magic" or where it was derived from; "straight up html" from the user input perspective). And yeah, that's typically what I do, I guess at the time I didn't have access to the edit link or just didn't think of it or something –  Jorge Israel Peña Dec 22 '12 at 8:34
add comment

2 Answers 2

up vote 59 down vote accepted

You need to use the <kbd> HTML tag:

<kbd>CTRL</kbd>+<kbd>Z</kbd>

becomes CTRL+Z

share|improve this answer
    
Thanks I appreciate the response. –  Jorge Israel Peña Jul 15 '09 at 9:13
    
Glad to help :-) –  Kyle Cronin Jul 15 '09 at 9:15
1  
How about to print "Android", "HTML" tag inside the question? Android tag's link is here: stackoverflow.com/questions/tagged/android –  Paresh Mayani Nov 8 '11 at 9:54
2  
Note that these don't work in comments but appears as <kbd>CTRL</kbd>. –  Deanna Jul 30 '12 at 14:28
1  
Or, now that mid 2012 these sites started being HTML5, the w3.org recommended way would be <kbd><kbd>CTRL</kbd>+<kbd>Z</kbd></kbd>... But yes, that is ugly here! (And yes, it's just a recommendation...) –  Arjan Sep 30 '12 at 15:33
2  
Hmm <kbd>kbd stopped working in comments</kbd> –  bobobobo Oct 18 '12 at 14:13
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .