Home Tutorial Html Html5 HTML5 kbd tag, Example of <kbd> tag in html5

 
 

HTML5 kbd tag, Example of <kbd> tag in html5
Posted on: September 10, 2010 at 12:00 AM
In this illustration, We will inform you about the <kbd> tag in html5.

HTML5 kbd tag, Example of <kbd> tag in html5

In this illustration, We will inform you about the <kbd> tag in html5. The <kbd> tag is used for specifying the user input and (keyboard text) in the html document. This tag must have opening and closing <kbd> tags.

Declaration Syntax:

The syntax for <kbd> tag is as:

<kbd>Your Text Here</kbd>

This tag have no specific attribute.

Example: kbd_tag.html.

<!DOCTYPE html>
<html>
  <head>
      <title>Example of kbd Tag</title>
  </head>
   <body>The normal text here.<br>
          <kbd>This is the keyboard text.</kbd>
  </body> 
</html>

Output:

Download This Example:

Difference between HTML5 and HTML4.

The attribute likes align, border, vspace, hspace are not supported by html5.

Related Tags for HTML5 kbd tag, Example of <kbd> tag in html5:


Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.