Home Tutorial Html Html5 HTML5 var tag, Definition of <var> tag in html5

 
 

HTML5 var tag, Definition of <var> tag in html5
Posted on: September 14, 2010 at 12:00 AM
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:

Advertisement

Related Tags for HTML5 var tag, Definition of <var> tag in html5:


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.

Posted on: September 14, 2010

Recommend the tutorial

Advertisements Advertisements
 

 

 

DMCA.com