How to add a variable in HTML?

HTMLWeb DevelopmentFront End Technology

Use the <var> tag in HTML to add a variable. The HTML <var> tag is used to format text in a document. It can include a variable in a mathematical expression.


You can try to run the following code to add a variable in HTML −

<!DOCTYPE html>
      <title>HTML var Tag</title>
      <p>The equations: <var>2x</var> - <var>4z</var> = <var>2y</var> + 3 and
         <var>x</var> + <var>5z</var> = <var>3y</var> + 6</p>
Updated on 02-Mar-2020 12:33:11