Introduction
The <var>
tag is used in HTML to represent a variable in a program or a mathematical equation. It works similar to the <strong>
or <em>
tag but instead of emphasizing text, it shows textual content as a variable.
In this lab, you will learn how to create a variable within an HTML file using the <var>
tag.
Note: You can practice coding in index.html
and learn How to Write HTML in Visual Studio Code. Please click on 'Go Live' in the bottom right corner to run the web service on port 8080. Then, you can refresh the Web 8080 Tab to preview the web page.
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
html(("`HTML`")) -.-> html/BasicStructureGroup(["`Basic Structure`"])
html(("`HTML`")) -.-> html/TextContentandFormattingGroup(["`Text Content and Formatting`"])
html(("`HTML`")) -.-> html/AdvancedElementsGroup(["`Advanced Elements`"])
html/BasicStructureGroup -.-> html/basic_elems("`Basic Elements`")
html/BasicStructureGroup -.-> html/head_elems("`Head Elements`")
html/TextContentandFormattingGroup -.-> html/text_head("`Text and Headings`")
html/TextContentandFormattingGroup -.-> html/para_br("`Paragraphs and Line Breaks`")
html/AdvancedElementsGroup -.-> html/inter_elems("`Interactive and Dynamic Elements`")
subgraph Lab Skills
html/basic_elems -.-> lab-70879{{"`HTML Variable Declarations`"}}
html/head_elems -.-> lab-70879{{"`HTML Variable Declarations`"}}
html/text_head -.-> lab-70879{{"`HTML Variable Declarations`"}}
html/para_br -.-> lab-70879{{"`HTML Variable Declarations`"}}
html/inter_elems -.-> lab-70879{{"`HTML Variable Declarations`"}}
end