Javatpoint Logo
Javatpoint Logo

HTML Computercode

HTML uses different tags for user inputs, codes, programs etc. Following is a list of some tags which are used in HTML for this task.

HTML <code> element

It is used to represent some programming code.

Example:

Test it Now

HTML <kbd> Element

It is used to represent user input, keyboard input, voice command etc. Text written within <kbd>.....</kbd> tags is typically displayed in the browser's default monospace font.

Example:

Test it Now

HTML <samp> Element

The HTML <samp> element is used to represent a program's output. Text written within samp element is typically displayed in the browser's default monospace font.

Example:

Test it Now

HTML <var> element

The HTML <var> element is used to define a variable. The variable could be a variable in a mathematical expression or a variable in programming context.

Example:

Test it Now
Next TopicHTML Entities




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials