HTML - <var> Tag


Advertisements


Description

The HTML <var> tag is used to format text in a document. It can include a variable in a mathematical expression.

Example

Live Demo
<!DOCTYPE html>
<html>

   <head>
      <title>HTML var Tag</title>
   </head>

   <body>
      <p>The equations: <var>3x</var> - <var>7z</var> = <var>8y</var> + 2  and
         <var>x</var> + <var>3z</var> = <var>4y</var> + 9 </p>
   </body>

</html>

This will produce the following result −

Global Attributes

This tag supports all the global attributes described in − HTML Attribute Reference

Event Attributes

This tag supports all the event attributes described in − HTML Events Reference

Browser Support

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes

html_tags_reference.htm

Advertisements
E-Books Store