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>
		<title>Sample formatting element example.. </title>
		<var> a = b * c </var>

Output -

a = b * c