( Best 500+ ) HTML MCQ question and Answers

by Mr. DJ

HTML MCQ question and Answers

What HTML means?
HyperText Markup Language
HyperText Markup Language (HTML) is the set of markup symbols or codes inserted into a file intended for display on the Internet. The markup tells web browsers how to display a web page’s words and images.
HTML MCQ question and Answers


31. The way the browser displays the object can be modified by _____

a. attributes
b. parameters
c. modifiers
d. None of above

Answer:-a

32. Which of the following HTML code is valid?

a. <font colour=”red”>
b. <font color=”red”>
c. <red><font>
d. All of above are style tags

Answer:-b

33. Which of the following is an attribute related to font tag?

a. size
b. face
c. color
d. All of above are style tags

Answer:-d

34. HTML supports

a. ordered lists
b. unordered lists
c. both type of lists
d. does not support those types

Answer:-c

35. What tag is used to list individual items of an ordered list?

a. LI
b. OL
c. UL
d. None of above

Answer:-a

36. When should you use path along with file name of picture in IMG tag?

a. path is optional and not necessary
b. when the location of image file andhtml file are different
c. when image file and html file both are on same location
d. path is always necessary when inserting image

Answer:-b

37. Which of the following is not a valid alignment attribute?

a. Left
b. Right
c. Top
d. All of above

Answer:-c

38. Which attribute is used with
img tag to display the text if image could not load in browser?
a. description
b. name
c. alt
d. id

Answer:-c

39. Which attribute can be used with BODY tag to set background color green?

a. background=”green”
b. bgcolor=”green”
c. vlink=”green”
d. None of above

Answer:-b

40. Which attribute you’ll use with TD tag to merge two cells horizontally?

a. merge=colspan2
b. rowspan=2
c. colspan=2
d. merge=row2

Answer:-c

You may also like

Leave a Comment