This <var> element usually causes text to be rendered in italics. It is used to format programming variable names that appear in a web page.
<var> |
Yes | Yes | Yes | Yes | Yes |
None.
The <var> tag supports the Global Attributes in HTML.
The <var> tag supports the Event Attributes in HTML.
var {
font-style: italic;
}
<html>
<body>
<var>myField</var>
</body>
</html>