Template:Kbd/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} <!-- Categories at the bottom of this page, please; interwikis at Wikidata --> == Purpose == This template is for explicitly indicating that the co..."
 
m Text replacement - "[[HTML" to "[[Wikipedia:HTML"
 
Line 4:
== Purpose ==
 
This template is for explicitly indicating that the content inside it represents input from a keyboard or other source (speech recognition software, [[standard input]], etc.) It uses the &#91;[[XHTML|X]]&#93;[[Wikipedia:HTML]] element {{tag|kbd}} (''keyboard input'') which exists for this purpose, and applies some styling to it, namely a faint grey background (borrowed from the related template {{tlx|key press}}) and slight [[Cascading style sheets|CSS]] letter-spacing to suggest individually entered characters. It retains the default monospaced (non-proportional) font style of the {{tag|kbd|open}} element. Because it uses {{tag|kbd}} instead of simply applying visual style effects, it is [[semantic markup]] that conveys meaning, and it can be further acted upon by the user agent (e.g. with custom local style sheets). This tag is the exact opposite of {{tlx|samp}}, which is for example output.
 
== Usage ==