html tutorial - <var> Variable Tag in HTML - html5 - html code - html form
Learn html - html tutorial - var tag - html examples - html programs
- <var> tag is used to display a variable. That can be a mathematical expression or a computer code.
- <var> tag is also known as Phrase tag.
- <var> tag is supports both Global and Event attributes.
- The <var> tag is belonging to Phrasing content category.
Syntax for <var> tag:
Sample Coding for <var> tag in HTML:
Code Explanation for <var> tag:
- <var> tag is used to define “y” and “x” as variable.
Output for <var> tag:
- “y=x+4” in this equation x and y are defined as <var> so that it will be shown in different formatting.
Browser Support for <var> tag in HTML:
Yes | Yes | Yes | Yes | Yes |