
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to add a variable in HTML?
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.
Example
You can try to run the following code to add a variable in HTML −
<!DOCTYPE html> <html> <head> <title>HTML var Tag</title> </head> <body> <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> </body> </html>
- Related Articles
- How to add a variable description in R?
- How to add a variable to Python plt.title?
- How to add a layer in HTML?
- How to add a paragraph in HTML?
- How to add a variable to the model in base R?
- How to add a resource reference in HTML?
- How to add a list item in HTML?
- How to add a set of frames in HTML?
- How to add a spellchecker for text in HTML?
- How to add a base font in a HTML page?
- How to add video in HTML page?
- How to add background music in HTML?
- How to add preformatted text in HTML?
- How to add horizontal line in HTML?
- How to add emoji in HTML document?

Advertisements