HTML Basics for Class 6 CBSE Computer: 18 MCQs with answers
All 18 multiple-choice questions from this kit, free and with no sign-up.
Warm-up · 7 questions
Q1. What does the abbreviation HTML stand for?
BeginnerShow answer & explanation
HyperText Markup Language
HTML stands for **HyperText Markup Language**. The word *markup* is the key clue — it tells you HTML marks up content rather than computing with it.
Q2. Which of these best describes HTML?
BeginnerShow answer & explanation
A markup language that describes the structure of web content
HTML is a **markup language**. It has no if-statements or loops; it simply wraps content in tags so the browser knows what each piece is. CSS handles styling and JavaScript handles interactivity.
Q3. Riya writes `<h1>My School</h1>` in her file. What will the browser do with the text *My School*?
BeginnerShow answer & explanation
Display it as the largest, most important heading
`` is the top heading level, so the browser renders *My School* as the largest, most important heading on the page. The tags themselves are never displayed.
Q4. Which tag correctly closes an opening `<p>` tag?
BeginnerShow answer & explanation
`</p>`
A closing tag carries a **forward slash** before the tag name: ``. Writing `` again would just open a second paragraph.
Q5. Which of the following is an **empty tag** with no closing partner?
BeginnerShow answer & explanation
`<br>`
`` inserts a line break and never wraps around content, so it has no closing tag. The other three all come in opening-and-closing pairs.
Q6. Which tag holds information *about* the page, such as the `<title>`?
BeginnerShow answer & explanation
`<head>`
The `` holds behind-the-scenes information about the page, including the ``. The `` holds everything the visitor actually sees.
Q7. **HTML** stands for **HyperText Markup Language** and is used to structure content on the web.
BeginnerShow answer & explanation
True
**HTML** stands for **HyperText Markup Language** and is used to structure content on the web.
Building up · 6 questions
Q8. A student types ten spaces and five line breaks between two words in the HTML code. What appears on the page?
IntermediateShow answer & explanation
The two words separated by a single space
HTML **collapses extra whitespace** into a single space. To force a line break you must use the `` tag, and to start a new block you use ``.
Q9. Which tag and attribute pair correctly creates a link to `https://www.example.com`?
IntermediateShow answer & explanation
`<a href="https://www.example.com">Visit</a>`
The `` tag creates a hyperlink and uses the **`href`** attribute for the destination. `src` belongs to ``, and `` cannot hold link text.
Q10. Which tag and attribute pair correctly embeds the image file `school.jpg`?
IntermediateShow answer & explanation
`<img src="school.jpg">`
The `` tag embeds an image and uses the **`src`** attribute for the file path. It is an empty tag, so no closing tag is needed.
Q11. Meera wants a numbered list of steps for a recipe. Which tags should she use?
IntermediateShow answer & explanation
`<ol>` with `<li>` for each step
An **ordered list** uses `` and shows numbers, which suits steps in a sequence. `` would give bullets instead, and `` with `` gives no list numbering at all.
Q12. A student writes `<p>Hello` and forgets the closing tag. What is the most likely result?
IntermediateShow answer & explanation
The browser may treat everything after it as part of that paragraph, breaking the layout
An unclosed tag is one of the most frequent beginner errors. The browser keeps treating following content as part of that paragraph, so the layout breaks. The file itself is not corrected.
Q13. Which statement about HTML and a programming language such as Python is correct?
IntermediateShow answer & explanation
HTML describes structure, while a programming language gives instructions to compute
HTML **describes** content structure and has no logic features. A programming language like Python **computes** — it has if-statements and loops and produces a result, file or action.
Topper level · 5 questions
Q14. Consider these statements about an HTML page: I. The `<body>` holds everything visible on the page. II. The `<title>` text appears on the browser tab. III. The `<head>` content is displayed in the main page area. Which of these are correct?
AdvancedShow answer & explanation
I and II only
Statement III is wrong: the `` holds information *about* the page and is not displayed in the main page area. The `` holds the visible content, and the `` shows on the browser tab.
Q15. A student writes this code: ```html <p>This is <b>very important</p></b> ``` What is wrong with it?
AdvancedShow answer & explanation
The tags are closed in the wrong order — `</b>` should come before `</p>`
Tags must be closed in the **reverse order** they were opened, like nesting boxes. Since `` was opened first and `` second, `` must close first, then ``.
Q16. Assertion (A): HTML is called a markup language rather than a programming language. Reason (R): HTML wraps content in tags to describe what each piece is, but it cannot calculate, decide or loop. Which option is correct?
AdvancedShow answer & explanation
Both A and R are true, and R correctly explains A.
HTML genuinely is a markup language, and the reason is exactly that it only *describes* content with tags — it has no logic features such as if-statements or loops. So R explains A.
Q17. Consider the following HTML snippet: ```html <html> <head> <title>My Page</title> <body> <h1>Welcome</h1> <p>This is a paragraph. </body> </html>``` What will happen when this code is rendered in a browser?
AdvancedShow answer & explanation
The browser will display 'Welcome' but ignore the paragraph due to a missing closing tag.
The paragraph tag `` is not closed, causing the browser to treat everything after it as part of that paragraph, leading to unexpected rendering.
Q18. A student is trying to create a recipe list using HTML. They write the following code: ```html <ol> <li>Gather ingredients</li> <li>Mix them well <li>Pour into a pan</li> <li>Bake for 30 minutes</li> </ol>``` What is the issue with this code, and how can it be fixed?
AdvancedShow answer & explanation
The second list item will not display because it lacks a closing `</li>` tag.
The second list item is missing a closing `` tag, which will cause the browser to misinterpret the structure of the list. Each `` must be properly closed.
Your notes can be a kit like these
Every kit here was made from real study material. Point Veda at a chapter, a PDF, a photo or a link and get notes, flashcards, practice MCQs, games and a scored test — free, in 42 languages.
- Chapter notes
- Flashcards
- Practice MCQs
- Scored tests
- Exam prep
Get Veda free See what students get
Free to start · No ads · Works in 42 languages