Horje
How to create HTML <var> For Variables

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.


Example of HTML <var> For Variables

Define some text as variables in a document:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h2>The var Element</h2>

<p>The area of a triangle is: 1/2 x <var>b</var> x <var>h</var>, where <var>b</var> is the base, and <var>h</var> is the vertical height.</p>

</body>
</html>

Output should be:

Example of HTML <var> For Variables
Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_formatting_var





Related Articles
What is HTML Computer Code HTML Computer Code
How to create HTML <kbd> For Keyboard Input HTML Computer Code
How to create HTML <samp> For Program Output HTML Computer Code
How to create HTML <code> For Computer Code HTML Computer Code
How to create HTML <code> For Computer Code Part - 2 HTML Computer Code
How to create HTML <var> For Variables HTML Computer Code

Single Articles
Example of HTML <var> For VariablesHTML Computer Code

Read Full:
HTML Computer Code
Category:
Web Tutorial
Sub Category:
HTML Computer Code
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
160



Share on: