HTML Multiple-Choice Questions
1. Which of these elements in HTML can be used for making a text bold?
a. <a>
b. <pre>
c. <br>
d. <b>
Answer: (d) <b>
i
in
2. Which tag do we use in HTML for inserting a line-break?
a. <a> Sa
b. <br>
c. <b>
d. <pre>
l
Answer: (b) <br>
hi
3. How to create a hyperlink in HTML?
a. <a link = “www.thinkandlearn.com”> thinkandlearn.com </a>
ik
b. <a> www.thinkandlearn.com <thinkandlearn.com /a>
N
c. <a href = “www.thinkandlearn.com”> thinkandlearn.com </a>
d. <a url = “www.thinkandlearn.com” thinkandlearn.com /a>
Answer: (c) <a href = “www.thinkandlearn.com”> thinkandlearn.com </a>
4. In HTML, how do we insert an image?
a. <img src = “jtp.png” />
b. <img href = “jtp.png” />
c. <img link = “jtp.png” />
d. <img url = “jtp.png” />
Answer: (a) <img src = “jtp.png” />
5. Which tag do we use to define the options present in the drop-down selection lists?
i
a. <list>
in
b. <option>
c. <dropdown>
d. <select>
Sa
Answer: (b) <option>
6. In HTML, which of these would add a background color?
l
a. <marquee bgcolor = “plum”>
hi
b. <marquee bg color: “plum”>
ik
c. <marquee color = “plum”>
d. <marquee bg-color = “plum”>
N
Answer: (a) <marquee bgcolor = “plum”>
7. Which HTML tag do we use to display text along with a scrolling effect?
a. <div>
b. <scroll>
c. <marquee>
d. None of the above
Answer: (c) <marquee>
8. In HTML, we use the <hr> tag for ___________.
a. horizontal ruler
b. new line
i
c. new paragraph
in
d. vertical ruler
Answer: (a) horizontal ruler
Sa
9. What is the correct way of sending mail in HTML?
a. <mail ab@b</mail>
b. <a href = “ab@b”>
l
c. <a href = “mailto: ab@b”>
hi
d. None of the above
ik
Answer: (c) <a href = “mailto: ab@b”>
10. In HTML, the tags are __________.
N
a. in upper case
b. case-sensitive
c. in lowercase
d. not case sensitive
Answer: (d) not case sensitive
11. Which of these tags helps in the creation of a drop-down box or a combo box?
a. <input type = “dropdown”>
b. <list>
c. <ul>
d. <select>
i
Answer: (d) <select>
in
12. Which tag is used in HTML5 for the initialization of the document type?
a. <Doctype HTML>
b. <!DOCTYPE html>
Sa
c. <Doctype>
d. <\Doctype html>
l
Answer: (b) <!DOCTYPE html>
hi
13. What is the correct way in which we can start an ordered list that has the numeric
value count of 5?
ik
a. <ol type = “1” start = “5”>
N
b. <ol type = “1” num = “5”>
c. <ol type = “1” begin = “5”>
d. <ol type = “1” initial = “5”>
Answer: (a) <ol type = “1” start = “5”>
14. Which one is the HTML document’s root tag?
a. <head>
b. <body>
c. <title>
d. <html>
Answer: (d) <html>
i
15. Which HTML tag do we use for displaying the power in the expression, (x² – y²)?
in
a. <p>
b. <sub>
c. <sup>
Sa
d. None of the above
Answer: (c) <sup>
l
16. In HTML, the correct way of commenting out something would be using:
hi
a. ## and #
ik
b. <!– and –>
c. </– and -/->
N
d. <!– and -!>
Answer: (b) <!– and –>
17. How does the <bdo> element work?
a. changes direction of the ltr text
b. override the direction of the rtl text
c. stops writing in current direction of text
d. override the text direction
Answer: (d) override the text direction
18. What attribute do we use for data binding?
a. datasrc
i
b. mayscript
in
c. name
d. datafld
Answer: (a) datasrc
Sa
19. The non-ASCII characters would be replaced with ________ by the process of URL
encoding.
l
a. “+”
hi
b. “%”
c. “&”
ik
d. “*”
N
Answer: (b) “%”
20. Which of these entities is not defined in the XML?
a. apos
b. quot
c. copy
d. gt
Answer: (c) copy
21. The ____________ entity is used for the arrow.
a. &zeta
b. &crarr
i
c. &oelig
in
d. &upsih
Answer: (b) &crarr
Sa
22. Which of these doesn’t support the MP3 format?
a. Opera
b. Safari
l
c. Chrome
hi
d. Firefox
ik
Answer: (a) Opera
23. Which one of these helps us test if an old browser supports the geolocation?
N
a. Modernizr.geolocation
b. Modernizr
c. Modernizr.js
d. Navigator.userAgent
Answer: (d) Navigator.userAgent
24. Which of these classes helps make a text stand out?
a. .small
b. .lead
c. .text-center
d. .text-left
i
Answer: (b) .lead
in
25. What do we call after initializing a plug-in to get A scripting interface?
a. NP_GetMIMEDescription
b. NP_Initialize
Sa
c. NPP_GetValue
d. NP_GetValue
l
Answer: (c) NPP_GetValue
hi
ik
N
Thanks & Regards
Nikhil Saini
Technical Trainer IMSEC