HTML Tag <KBD>

HTML Tag <KBD>

<KBD> Specifies keyboard input within a document.

Attribute of <KBD> Tag

CLASS

Indicates which style class applies to the <KBD> element.

Now press the <KBD CLASS="dkm">F4 </KBD> key!

Possible Values

Any Class Name.



ID

Assigns a unique ID selector to an instance of the <KBD> tag. When you then assign a style to that ID selector, it affects only that one instance of the <KBD> tag.

Press <KBD ID="dkm">F1</KBD> for help.

Possible Values

Any ID Name.



STYLE

Specifies Style Sheet commands that apply to the text within the <KBD> tags.

<KBD STYLE="background: red">F10</KBD>

Possible Values

CSS Property with Value.



TITLE

Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the keyboard text.

Now press the <KBD TITLE="Keyboard stuff">F4</KBD> key.

Possible Values

Any text Message.




Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad