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?

Beginner
A HyperText Machine Language B HighText Markup Language C Home Tool Markup Language D HyperText Markup Language
Show 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?

Beginner
A A programming language that performs calculations B A database language that stores web pages C A markup language that describes the structure of web content D A styling language that colours and positions elements
Show 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*?

Beginner
A Show the tags along with the text B Hide it because it is inside the head C Display it as a normal paragraph D Display it as the largest, most important heading
Show 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?

Beginner
A `</p>` B `<\p>` C `<p/>` D `<p>`
Show 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?

Beginner
A `<p>` B `<br>` C `<h1>` D `<li>`
Show 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>`?

Beginner
A `<head>` B `<html>` C `<title>` D `<body>`
Show 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.

Beginner
A True B False
Show 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?

Intermediate
A The two words on separate lines B The two words separated by ten spaces C The two words separated by a single space D The two words with the extra spaces shown as text
Show 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`?

Intermediate
A `<img href="https://www.example.com">Visit</img>` B `<a href="https://www.example.com">Visit</a>` C `<a src="https://www.example.com">Visit</a>` D `<link href="https://www.example.com">Visit</link>`
Show 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`?

Intermediate
A `<img src="school.jpg">` B `<a src="school.jpg">` C `<img href="school.jpg">` D `<image src="school.jpg"></image>`
Show 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?

Intermediate
A `<ol>` with `<li>` for each step B `<p>` with `<br>` between steps C `<h1>` with `<li>` for each step D `<ul>` with `<li>` for each step
Show 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?

Intermediate
A The browser refuses to open the page at all B The word Hello disappears from the page C The browser may treat everything after it as part of that paragraph, breaking the layout D The browser automatically inserts the correct closing tag in the file
Show 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?

Intermediate
A HTML supports if-statements and loops, while Python does not B HTML produces a result or action, while Python produces a rendered page C Both HTML and Python are markup languages used for web pages D HTML describes structure, while a programming language gives instructions to compute
Show 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?

Advanced
A II and III only B I and III only C I, II and III D I and II only
Show 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?

Advanced
A The `<b>` tag is an empty tag and needs no closing tag B The `<b>` tag should not be used inside a paragraph C The `<p>` tag needs an `href` attribute D The tags are closed in the wrong order — `</b>` should come before `</p>`
Show 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?

Advanced
A A is true, but R is false. B Both A and R are true, but R does not explain A. C Both A and R are true, and R correctly explains A. D A is false, but R is true.
Show 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?

Advanced
A The browser will display the title 'My Page' in the tab and 'Welcome' followed by 'This is a paragraph.' B The browser will display 'My Page' as the main heading and 'Welcome' as a subheading. C The browser will show an error message due to the missing closing tag for the paragraph. D The browser will display 'Welcome' but ignore the paragraph due to a missing closing tag.
Show 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?

Advanced
A The list will display correctly as is, since all list items are properly formatted. B The second list item will not display because it lacks a closing `</li>` tag. C The list should be an unordered list, so `<ul>` should be used instead of `<ol>`. D The list items should not be nested; they should be placed directly under the `<ol>` tag.
Show 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.

Make your own

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