Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

HTML <var> Tag

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

It is a phrase tag and used to specify the variable in a mathematical equation or in a computer program. The content of this tag is displayed in an italic format in most browsers.

Syntax: 

<var> Contents... </var>

Example: 

HTML




<!DOCTYPE html>
<html>
      
    <body>
        <h1>GeeksForGeeks</h1>
        <h2><var> Tag</h2>
       
        <!-- HTML var Tag is used here-->
        <var>GeeksforGeeks Variable</var>
       
    </body>
   
</html>

Output: 
 

Supported Browsers: 

  • Google Chrome
  • Edge 12 and above
  • Internet Explorer
  • Firefox 1 and above
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Last Updated : 19 Jul, 2022
Like Article
Save Article
Similar Reads