Share on Google+Share on Google+

HTML5 var tag, Definition of <var> tag in html5

Advertisement
Here we introduce you about the use and implementation of the <var> tag in html document.

HTML5 var tag, Definition of <var> tag in html5

Here we introduce you about the use and implementation of the <var> tag in html document. This tag is used for representing the variable declared in programming codeor in mathmatics .The font of variable defined in the html document is similar to the programming code text. The text within the <var> tag marked up with the surroundings. This tag have both start and end tag.

There is no difference with the html4 version and don't have any element specific attribute.

Declaration Syntax:

<var>Variable Here</var>

Example: var_tag.html.

<!DOCTYPE html>
<html>
  <head>
     <title>Example of var tag</title>
  </head>
  <body>
         <b>This is the var tag Example:</b><br>
          String <var> name,address:</var><br>
           int <var> a,b,c,d:</var><br>
 </body>
</html>

Output:

Download This Example:

Advertisements

Advertisement

Posted on: September 14, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.