HTML5 > Structures

Variable in HTML5

How to declare a variable in HTML


Variable 

Variable in html is used define the variable, we use <var> tag to define a variable  

<body>
    <p>Var is used to define a variable</p>
    <var>Techfunda</var>
</body>

In the above code snippet we have defined the variable using <var> tag, we have given the value in the var tag as TechFunda, it displays the output in variable format

output

 

 Views: 3849 | Post Order: 83



Write for us






Hosting Recommendations