Public Service Commission (PSC)2082 BSQuestion 4 of 9
What is HTML? Explain the structure of an HTML document with example.
6 marks
Question source
- Exam year
- 2082 BS / 2025 AD
- Level
- Level 4
- Paper
- Paper II – Subjective
- Section
- Section A: Short Answer Questions (5 × 6 = 30 marks)
Model answer
HTML (HyperText Markup Language) is the standard markup language used to create and structure content on web pages. It uses tags to define elements like headings, paragraphs, links, images, and tables.
Structure of an HTML document:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<meta charset="UTF-8">
</head>
<body>
<h1>Welcome</h1>
<p>This is a paragraph.</p>
</body>
</html>
<!DOCTYPE html>— Declares the document type (HTML5)<html>— Root element of the page<head>— Contains meta-information (title, charset, styles)<title>— Sets the browser tab title<body>— Contains visible page content<h1>to<h6>— Heading tags<p>— Paragraph tag