TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML kbd Tag

HTML kbd Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <kbd> tag

HTML <kbd> tag indicates the part of inline text which represents the user keyboard input, voice input, or any other text entry device input.

The <kbd> text renders on the browser in default monospace font. It is used when a document needs to display the text which user should enter exactly from his keyboard.

Note: We can also use CSS properties to get the same display effect as <kbd> tag.

Syntax

  <kbd>Enter Keyboard input</kbd>

Following are some specifications about the HTML <kbd> tag

Display Inline
Start tag/End tag Both Start and End tag
Usage Textual

Example

<!DOCTYPE html>
<html>
<head>
	<title>Kbd Tag</title>
<style>
	kbd {  border: 1px solid blue;  
		border-radius: 8px;  
		padding: 3px 5px; 
		margin: 2px; 
			
} 
</style>
</head>
<body> 
<h2>Example of Kbd tag</h2>
<p>If you are using MS document then you can use shortcut <kbd>ctrl + s</kbd> to save your current document. </p>
</body>
</html>
Test it Now

Output:

HTML kbd tag

Attribute

Tag-specific attribute

The <kbd> tag does not include any specific attribute.

Global attribute

The <kbd> tag supports the global attributes in HTML

Event attribute

The <kbd> tag supports the event attributes in HTML

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<kbd>YesYesYesYesYes
Next TopicHTML label Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf