The HTML <var>
element is used to define a variable in programming or in a mathematical expression. The content inside is typically displayed in italic.
<!DOCTYPE html> <html> <body> <p>The code element does not preserve whitespace and line-breaks.</p> <p>To fix this, you can put the code element inside a pre element:</p> <pre> <code> x = 5; y = 6; z = x + y; </code> </pre> </body> </html>