Pr.Pg Next Pg

<KBD></KBD> tag tutorials

  • The kbd element is used to identify keystrokes that the user needs to make on his or her keyboard.

  • These keystrokes could form a string of text, or they could reflect individual key presses that the user must complete.

  • Most browsers will render kbd content in a mono space font.

  • <KBD> tag attributes are below:

 

Sr No

Attributes

Descriptions

1

ID

The ID attribute assigns an identifier to the associated element. This identifier must be unique in the document.

2

TITLE

The purpose of this attribute is to provide a title for the element.

3

STYLE

This attribute is used to define presentational attributes for the containing element.

 

Syntax:

<body>

<kbd>key board key</kbd>

</body>

 

Example: HTML program to demonstrate KBD element

Output:
Pr.Pg border                                              Next Pg