Summary -

In this topic, we described about the <var> tag along with detailed example.

Defines a variable or Variable formatting in HTML document. Variable formatting is used to define the mathematical variable. Variable formatting uses <var> tag.

Any text in between <var>..</var> defines it as mathematical variable to browsers. <var> element is nested element. Mostly <var> used in mathematical expressions.

Syntax -

<var>.... HTML text here </var>

Example -

<!DOCTYPE html>
<html>
	<head>
		<title>Sample formatting element example.. </title>
	</head>
	<body>
		<var> a = b * c </var>
	</body>
</html>

Output -

a = b * c