The <var> tag is stand for variable tag. The Variable tag represents a variable in a mathematical expression or a programming context,although there are actually no restrictions where you can use this HTML tag. It has the opening and closing ends and text between these tags display as a variable text.It's display result is similar to <i> (italic) tag.

You can understand use of <var> tag by a simple example:-

e.g.

<!DOCTYPE html>
<html>
<head>
<title>var tag</title>
</head>
<body>
<p>
A simple equation: <var>x</var> = <var>y</var> - 4 </p>

</body>
</html>


Result:-

A simple equation: x = y - 4



Conclusion:--

So the <var> tag is used to define a varible in a mathematical expression or a programming context in webpage.

<var> tag का उपयोग गणितीय expressions or कंप्यूटर प्रोग्रामिंग में variables (परिवर्तनांक) को दिखाने के लिए किया जाता है जिसे आप ऊप्पर दिए गए उदाहरण से समझ सकते है


0 comments:

Post a Comment