HTML5 > Structures

Keyboard input in HTML5

How to indicate the text to be entered by the User in HTML5?


The word 'kbd' represents the ‘Keyboard input’. By using the <kbd> tag we can indicate the text to be entered by the User.

<body>
    It defines the keyboard input.
    <h1>Hello hello <q>hello</q>, this is async attribute of script element.</h1>
    
    Enter something here <kbd>Axddd</kbd> 
    <br />
    <code>Axddd</code>
    
</body>

Notice that the text inside the <kbd> tag is the text to be entered by the user.

Output


 Views: 4747 | Post Order: 76



Write for us






Hosting Recommendations