Everything2
Near Matches
Ignore Exact
Full Text
Everything2

kbd

created by in10se

(thing) by in10se (50 min) (print)   ?   (I like it!) Wed Jul 23 2003 at 21:05:55

kbd is an HTML tag that is used to specify text to be typed in by the user (usually on a keyboard). While seldom used, this tag is useful for writing documentation for computer users. While the tag usually renders text by displaying it in a monospaced font, the tag should not be used simply for this purpose.

See also: code, font, plaintext, pre, samp, tt, var

Attributes

The kbd tag does not have any required HTML attributes. It does, however have numerous allowable attributes including:

Usage

To use the kbd tag, simply place opening and closing HTML tags around the characters that should be entered by the user. For example:

To destroy the usefulness of your computer, type <kbd>del C:\*.* /S /Q</kbd> at the command prompt.

On browsers that support this tag, this will typically cause the phrase "del *.* /S /Q" to be displayed in a monospaced font. Keep in mind that the purpose of this tag is to specify text to be typed in by the user, not to format your text. If you simply want to use a teletype font, you should technically use Cascading Style Sheets or the pre tag, however there are also the deprecated plaintext, samp, and tt tags that will do this as well.

Everything2 Support?

E2 does provide limited support for the kbd tag. It does not allow the use of any of its HTML attributes. Below is how your browser displays the example above here on Everything2:

To destroy the usefulness of your computer, type del C:\*.* /S /Q at the command prompt.

If you would like to use this tag with any of its attributes, you can do so in your Notelet Nodelet.

Common Browser Implementations*

Most web browsers support this tag, as it has been around since HTML 2.0. Most browsers will display the specified text in a monospaced font such as Courier New, but are not required to do so.

Previous HTML Tag: isindex (previous E2 supported HTML tag: ins)
Next HTML Tag: label (next E2 supported HTML tag: li)
See Also: HTML tags and HTML attributes


* Please feel free to send me information about how other browsers implement this tag.


printable version
chaos

3:09 AM March 14, 2009 root log: March 2008 According to the Turing Test, I do not exist
March 23, 2009 March 13, 2009 Where am I going, and what am I doing in this handbasket? Crown of Thorns Starfish
How to seem dumber than you really are April 15, 2008 riverrun King of Everything2
Lijssenthoek Lord Byron sayonara KGB
IRC Keyboarding Unicode How to get Apache to send compressed versions of static HTML files
HTML attributes Editor Log: January 2005 A Game of Tag KB
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
What you are reading:
soulmate
J.S.G. Boggs
shutdown
pro-anorexia
Josef Stalin
Mae West
mathematics
John XXIII
consumerism
Treaty of Utrecht
Ending Poetry
Choosing and applying to a Graduate School
We were supposed to fall
New Writeups
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
E2 is a by-product of the existence of The Everything Development Company