<

HTML <var> Tag

The <var> tag is a phrase tag. It defines a variable.

  • <em> Renders as emphasized text

  • <strong> Defines important text

  • <code> Defines a piece of computer code

  • <samp> Defines sample output from a computer program

  • <kbd> Defines keyboard input

  • <var> Defines a variable


  • Example



    <!DOCTYPE html>
    <html>
    <body>
    
    <em>Emphasized text</em><br>
    <strong>Strong text</strong><br>
    <code>A piece of computer code</code><br>
    <samp>Sample output from a computer program</samp><br>
    <kbd>Keyboard input</kbd><br>
    <var>Variable</var>
    
    </body>
    </html>
    
    
    















    © copyright 2017-2022 Completedone pvt ltd.