- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML Tag
The <var> element in HTML is used to display mathematical expression for calculations.
Let us now see an example to implement the <var> tag in HTML -
Example
<!DOCTYPE html> <html> <body> <h2>Mathematical Equation</h2> <p>Sample equation: <var>2x</var> - <var>2z</var> = <var>3y</var> + 9 </body> </html>
Output
In the above example, we have the following mathematical equation -
2x – 2z = 3y – 9
The equation is represented using the <var> -
<p>Sample equation: <var>2x</var> - <var>2z</var> = <var>3y</var> + 9
Advertisements