var

I. Description

The html 'var' element is used to encapsulate the name of a variable in a mathematical expression, or a variable in the source code of a computer program.

This element is not frequently used. If you are trying to write a mathematical equation or formula in html use the <math> element.

II. Examples

<!DOCTYPE html>
<html>
    <head>
        <title>Example Page</title>
    </head>
    <body>
        <h1>Example HTML Page</h1>
        <p>A simple python program to add two numbers.</p>
        <code>
            <var>variable_1</var> = 3 + 5
            print(f"The value of variable_1 is: {variable_1}")
        </code>
    </body>
</html>