HTML Basics for Class 6 CBSE Computer: 18 MCQs

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

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

Q4. Which tag correctly closes an opening `<p>` tag?

Beginner
A `</p>`
B `<\p>`
C `<p/>`
D `<p>`

Answers and explanations are in the Veda app.

Q5. Which of the following is an **empty tag** with no closing partner?

Beginner
A `<p>`
B `<br>`
C `<h1>`
D `<li>`

Answers and explanations are in the Veda app.

Q6. Which tag holds information *about* the page, such as the `<title>`?

Beginner
A `<head>`
B `<html>`
C `<title>`
D `<body>`

Answers and explanations are in the Veda app.

Q7. **HTML** stands for **HyperText Markup Language** and is used to structure content on the web.

Beginner
A True
B False

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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>`

Answers and explanations are in the Veda app.

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>`

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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

Answers and explanations are in the Veda app.

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>`

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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.

Answers and explanations are in the Veda app.

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 to start, in more than 40 languages.

  • Chapter notes
  • Flashcards
  • Practice MCQs
  • Scored tests
  • Paper Solver

Get Veda free See what students get

Free to start · Android app and web · More than 40 languages