The HTML Elements reference

"kbd" - html element

  • This element denotes text to be entered by the user.
  • Browsers will typically render text as monospaced.
  • Starttag <kbd> is Required and endtag </kbd> is Required
  • You can suggest another rendering using style sheets (CSS 'font' ).
  • Browsers that support the kbd - element : Internet Explorer Mozilla Firefox Opera Google Chrome Apple Safari
Element "kbd" example:
<html>
<head>
<title>Logical Styles</title>
</head>
<body>
<p>
<em>Emphasis</em> looks <i>italic</i>. <br>
<strong>Strong</strong> looks <b>bold</b>. <br>
<code>Code</code> looks like <tt>teletype</tt>. <br>
<samp>Sample</samp> looks like <tt>teletype</tt> too. <br>
<kbd>Keyboard</kbd> also looks like <tt>teletype</tt>. <br>
<var>Variable</var> looks <i>italic</i>. <br>
<dfn>Definition</dfn> also looks <i>italic</i>. <br>
<cite>Cite</cite> is another logical style that looks
<i>italic</i>.
</p>
</body>
<html>


Attributes:
class , dir , id , lang , style , title

Attribute "class" value(s): A list of style class names that must be separated by white space characters.
  • This attribute assigns a style class name or set of style class names to an element. Any number of elements may be assigned the same class name or names.
  • You will find more about this in the CSS learning on this site.



© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.