HTML Computer Code Elements
The table below shows the HTML Computer Code Tags with their description:
Tag | Description |
---|---|
<code> | Defines a piece of computer code. |
<kbd> | Represents keyboard input, often used to display keys or key combinations. |
<pre> | Displays preformatted text, maintaining its original formatting. |
<samp> | Displays sample output or examples, typically used in computing contexts. |
<var> | Denotes variables, often used to represent placeholders or program entities. |
HTML Computer Code Elements
The computer has a unique formatting and text style for displaying the messages related to codes. There are several elements available to mark up computer code elements using HTML which are as follows:
Table of Content
- The code Tag
- The kbd Tag
- The pre Tag
- The samp Tag
- The var Tag
- HTML Computer Code Elements
- Supported Browsers