Template:Samp/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
m Text replacement - "[[WP:" to "[[Wikipedia:WP:"
m Text replacement - "[[HTML" to "[[Wikipedia:HTML"
 
Line 4:
== Purpose ==
 
This template is for explicitly indicating that the content inside it represents example output from a computer program or other machine source ([[automated attendant]]/[[interactive voice response]] call system, [[exit code]] of an application, [[standard output]], LCD display, etc.) It uses the [[[XHTML|X]]][[Wikipedia:HTML]] element {{tag|samp}} (''sample output'') which exists for this purpose, and applies some styling to it, namely a faint greying out of the text color to visually difference it from source code and input. It retains the default monospaced (non-proportional) font style of the {{tag|samp|open}} element. Because it uses {{tag|samp}} 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|kbd}}, which is for example input.
 
== Usage ==