<var> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:var

Introduction

var element marks a variable in a programming context.

var element summary

Item Value
Element var
Local local attributes none
Changed in HTML5 N/A

Style convention

var {
   font-style: italic;
}

The following code shows how to use var element.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <p>
         The variable in this example is 
         <var>items</var>
      </p>  
   </body><!--from   w w  w  . j a  v  a  2 s  .com-->
</html>

Related Tutorials