Skip to content
Related Articles

Related Articles

Improve Article

HTML <var> Tag

  • Difficulty Level : Basic
  • Last Updated : 01 Jul, 2021

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
  • Internet Explorer
  • Firefox
  • Opera
  • Safari

Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :