When creating an HTML document, the purpose of HTML5 <kbd> tag is to specify a keyboard input. It is for the text that has to be typed in by the user. The HTML <kbd> tag has to be placed before and after the text to make it work.
There is no problem when putting HTML <kbd> tag in HTML documents because Internet Explorer, Google Chrome, Safari, Opera and Firefox all recognize this. The HTML <kbd> tag is also well-suited with the Event Attributes and Global Attributes in HTML5.