HTML (HyperText Markup Language) is one of the most important topics in the Class 10 Computer Applications syllabus. It helps students understand how web pages are created and structured using different HTML tags and elements. Practicing MCQs is an effective way to revise key concepts such as HTML document structure, headings, paragraphs, links, images, lists, tables, and formatting tags.
HTML Class 10 Sample Paper MCQs
1. Which of the following is an attribute of the <body> tag?
a. vlink
b. face
c. color
d. font-size
Explanation: The “vlink” is used to set the color of visited links.
2. In HTML, the bgcolor attribute is used to
a. Set the background color of the webpage.
b. Set the text color of the webpage.
c. Set the background image of the webpage.
d. Set the background text of the webpage.
Explanation: The “bgcolor” attribute is used to set the background color.
3. Which tag besides “<b>” <B> can be used to make the text bold in HTML?
a. <strong>
b. <dark>
c. <fat>
d. <I>
Explanation: The <strong> tag is used to make the text bold just like a <b> tag.
4. Aman, a student of Class X, wants to create a numbered list in HTML. Which of the
Which following tag should he use?
a. <UL>
b. <OL>
c. <DL>
d. <list>
Explanation: It <ol> is used to create ordered lists (numbered) and <ul> is used for bullets.
5. Anshu, a class X student, is writing CSS code for making all <span> elements bold.
Choose the correct code for getting the desired output from the following options:
a. span{text-size:bold}
b. span {font-weight:bold}
c. <span style=”font-size:bold”>
d. <span style=”text-size:bold”>
6. “M” in HTML stands for
a. Modify
b. Management
c. Multiple
d. Markup
7. Which of the following is not a valid value for the target attribute of <a> the tag?
a. _blank
b. _self
c. _top
d. _bottom
Explanation: The valid values for the target attributes of <a> the tag are “_blank,” “_self,” and “_top,” but “_bottom” is not a valid attribute of <a> the tag.
8. link, vlink, and alink are attributes of the _ tag.
a. <body>
b. <a>
c. <html>
d. <img>
Explanation: The <body> tags do not support link, vlink, and alink attributes.
9. The _ attribute of <img> a tag specifies an alternate text for an image if the image cannot be displayed.
a. alt
b. text
c. alternate
d. msg
Explanation: The “alt” attribute provides text if the image cannot be displayed.
10. Which of the following tags can be used to draw a horizontal line on a webpage?
a. <line>
b. <hr>
c. <hr>
d. <rule>
Explanation: The <hr> tag is used to draw a horizontal line.
11. In HTML, <dd> tags are used to create:
a. Description list
b. Definition list
c. Detail list
d. Dynamic list
Explanation: In HTML,
<dl> <dd> and </dl><dt> tags are used to create a description list.12. Collection of hyperlinked documents available on the internet is known as ___.
a. Website
b. Webpage
c. Search Engine
d. URL
Explanation: A website is a collection of hyperlinked pages and documents.
13. The HTML tag used to make the text italics is __:
a. <italics>
b. <ita>
c. <i>
d. <L>
Explanation: The <i> italics tag is used to make the text italic.
14. Which tag is used to provide a line break __ in an HTML document?
a. <p>
b. <br>
c. <line>
d. <em>
Explanation:<br>The
<br> tag is used to break the line in HTML.15. The attribute of the <IMG> tag used to specify the location of an image is __:
a. img
b. src
c. alt
d. name
Explanation: The “src” attribute is used to give the file path or location of the image tab.
16. Assertion (A): HTML is a markup language.
Reason (R): HTML is used to structure or format text with the help of predefined tags.
a. Both Assertion (A) and Reason (R) are true, and Reason (R) is a correct explanation of Assertion (A).
b. Both Assertion a. and Reason (R) are true, but Reason (R) is not a correct explanation of Assertion (A).
c. Assertion a. is true, and Reason (R) is false.
d. Assertion a. is false, and Reason (R) is true.
17. Assertion (A): In HTML, tags written in lowercase letters or uppercase letters are treated as the same.
Reason (R): HTML is a case-sensitive language.
a. Both Assertion a. and Reason (R) are true, and Reason (R) is a correct explanation of Assertion (A).
b. Both Assertion a. and Reason (R) are true, but Reason (R) is not a correct explanation of Assertion (A).
c. Assertion a. is true, and Reason (R) is false.
d. Assertion a. is false, and Reason (R) is true.
18. The correct HTML code to display (P + Q)² </SUP> is:
a. <SUB>(P+) 2</SUB>
b. P+Q² </SUP>
c. (P + Q)² </SUP>
d. <SUP> (P+Q)²</SUP>
19. Which HTML tags cause browsers to render text as italics?
a. <text style = “italics”></text>
b. <ital.></ital.>
c. <i></i>
d. <b></b>
Explanation: <i></i> renders text in italics.
20. The correct HTML code for inserting an image is
a. <img href=”image.gif”>
b. <img> image.gif</gif>
c. <image src = “image.gif”>
d. <img src = “image.gif” >
Explanation: The correct syntax of the image tag is <img src = “image.gif” >
21. Which attribute is NOT valid for the <body> tag?
a. background
b. color
c. vlink
d. bgcolor
Explanation: The background, vlink, and bgcolor attributes can be used in the body tag, but color is not an attribute of the body tag.
22. The __ attribute is used to specify the location of an image file.
a. alt
b. src
c. align
d. name
23. The_________ attribute of <img> a tag specifies an alternate text for an image if the image cannot be displayed due to any reason.
a. alt
b. alternate
c. tooltip
d. text
24. While creating a web document, which unit is used to express an image’s height and width?
a. Centimeters
b. Pixels
c. Dots per inch
d. Inches
Explanation: The height and width are measured in pixels.
25. Which is the correct way to comment out something in HTML?
a. Using ## and #
b. Using <!– and –>
c. Using </– and -/->
d. Using <!– and -!>
Explanation: This is a multiline comment in HTML <!– comment –>.
26. The default alignment of images that are inserted in a webpage is
a. left
b. right
c. inline with text
d. middle
Explanation: By default, images are inline with text.
27. Which of these is NOT an attribute of the font tag?
a. color
b. face
c. type
d. size
Explanation: The type is not a valid attribute of the font tag.
28. The <_> tag displays text in subscript form.
a. sub
b. sup
c. sups
d. subs
Explanation: The <sub> tag is used to display the text in subscript format.
29. HTML tags to draw a horizontal line:
a. <hl>
b. <hr>
c. <hline>
d. None of the above
Explanation: The <hr> tag is used to create a horizontal line on a web page.
30. What type of CSS is the following code snippet?
<h1 style=”color:blue;”>A Blue Heading</h1>
a. External
b. Inline
c. Outline
d. Internal
Explanation: There are three different ways to add CSS on the webpage: inline, external, and internal. The above example is the inline method.
31. Assertion (A): CSS saves a lot of work. It can control the layout of multiple web pages all at once.
Reason (R): All the required style settings can be stored in an external stylesheet and a link.
It can be added in the <head> section of each web page.
a. Both Assertion a. and Reason (R) are true, and Reason (R) is a correct explanation of Assertion (A).
b. Both Assertion a. and Reason (R) are true, but Reason (R) is not a correct explanation of Assertion (A).
c. Assertion a. is true, and Reason (R) is false.
d. Assertion a. is false, and Reason (R) is true.
Disclaimer: We have taken an effort to provide you with the accurate handout of “HTML Class 10 Sample Paper MCQs”. If you feel that there is any error or mistake, please contact me at anuraganand2017@gmail.com. The above CBSE study material present on our websites is for education purpose, not our copyrights.
All the above content and Screenshot are taken from Computer Application Class 10 Support material which is present in CBSE Website, CBSE Sample Paper, CBSE Old Sample Paper, CBSE Board Paper which is present in CBSEACADEMIC website This Textbook and Support Material are legally copyright by Central Board of Secondary Education. We are only providing a medium and helping the students to improve the performances in the examination.
Images and content shown above are the property of individual organisations and are used here for reference purposes only. To make it easy to understand, some of the content and images are generated by AI and cross-checked by the teachers. For more information, refer to the official CBSE textbooks available at cbseacademic.nic.in.