- What does HTML stand for?
- What is the difference between a tag and an element?
- Why is
<meta charset>needed? - Which part of the document is visible to the user: head or body?
Show answers
HyperText Markup Language. *HyperText* means text containing links to other documents; *markup* means tags that describe the structure of the content.
A tag is the code in angle brackets, such as
<p>or</p>. An element is the complete unit: the opening tag, the content and the closing tag together, for example<p>Hello</p>. Void elements such as<img>and<br>have only one tag.<meta charset='UTF-8'>tells the browser which character encoding the file uses so it can decode the bytes correctly. Without it, letters such as Sinhala, Tamil, accented characters or symbols (₹, ©) may appear as garbage characters (mojibake).Only the body is displayed in the browser window. The head holds information about the page (title, charset, styles, scripts, meta data). The
<title>from the head is shown on the browser tab, not in the page.