<

>HTML element

It is used to represent some programming code.

Example




<!DOCTYPE html>
<html>
<body>

<h2>Computer Code</h2>
<br>

<code>
x = 1;<br>
y = 2;<br>
z = 3;
</code>

</body>
</html>


HTML <kbd> Element

The HTML <kbd> element represents user input, like keyboard input or voice commands.

<kbd> Example



<!DOCTYPE html>
<html>
<body>

<h2>kbd save</h2>


<p>Save the document by pressing <kbd>Ctrl + S</kbd></p>

</body>
</html>



HTML <samp>

The HTML <samp> element represents output from a program or computing system.

HTML <samp> Example




<!DOCTYPE html>
<html>
<body>

<h2>The samp Element</h2>

<p>If you input wrong value, the program will return <samp>Error!</samp></p>

</body>
</html>


HTML <var>

The HTML <var> element defines a variable.

HTML <var> Example



<!DOCTYPE html>
<html>
<body>

<h2>The var Element</h2>
<p>Einstein wrote: <var>E</var> = <var>mc</var><sup>2</sup>.</p>

</body>
</html>



















© copyright 2017-2022 Completedone pvt ltd.