HTML <var> Tag

This HTML <var> Tag is a phrase tag and is used for mathematical equations or to define variables in a programming context.

The content inside the HTML <var> Tag is presented in italic fonts in most browsers but can be overridden using proper CSS.

Example:-

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>
        HTML var Tag
    </title>
</head>
<body>

<h1>This is HTML var Tag Example</h1>
<p>Press <var>Ctrl</var> + <var>C</var> to copy text (Windows).</p>

<p>Press <var>Cmd</var> + <var>C</var> to copy text (Mac OS).</p>
</body>
</html>

Output:-

Below are some related elements of the HTML <var> Tag, which can also be used for a similar reference:

HTML <code> Tag

HTML <samp> Tag

HTML <var> Tag

HTML <pre> Tag

HTML <kbd> Tag


Related Posts

2 thoughts on “HTML Var Tag

Leave a Reply

Your email address will not be published. Required fields are marked *