Unit 4 · Web Page Design Using HTML

4.2Review Questions

  1. What does HTML stand for?
  2. What is the difference between a tag and an element?
  3. Why is <meta charset> needed?
  4. Which part of the document is visible to the user: head or body?
Show answers
  1. HyperText Markup Language. *HyperText* means text containing links to other documents; *markup* means tags that describe the structure of the content.

  2. 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.

  3. <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).

  4. 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.