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 >
< var >GeeksforGeeks Variable</ var >
</ body >
</ html >
|
Output:

Supported Browsers:
- Google Chrome
- Edge 12 and above
- Internet Explorer
- Firefox 1 and above
- Opera
- Safari
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!