MCQ of HTML | HTML MCQ

1. What is HTML?

a. HTML describes the structure of a webpage

b. HTML is the standard markup language mainly used to create web pages

c. HTML consists of a set of elements that helps the browser how to view the content

d. All of the mentioned

2. Who is the father of HTML?

a. Rasmus Lerdorf

b. Tim Berners-Lee

c. Brendan Eich

d. Sergey Brin

3. HTML is a

a. scripting language

b. software

c. markup language

d. All of the above

4. HTML stands for __________

a. HyperText Markup Language

b. HyperText Marking Language

c. HyperTechnical Markup Language

d. HyperTechnical Markinf Language

5. Which of the following extension is used to save an HTML file?

a. .hl

b. .h

c. .htl

d. .html

6. A tag is

a. HTML command

b. HTML Header

c. HTML statement

d. None of these

7. The correct sequence of HTML tags for starting a webpage is –

a. Head, Title, HTML, body

b. HTML, Body, Title, Head

c. HTML, Head, Title, Body

d. HTML, Head, Title, Body

8. HTML tags are enclosed in

a. curly brackets

b. square brackets

c. double quotes

d. angular brackets

9. Which one is the HTML document’s root tag?

a. <head>

b. <body>

c. <title>

d. <html>

10. Which sequence of HTML tags is correct?

a. <html><head></head><body></body></html>

b. <html><head><body></body></head></html>

c. <html><head></body></body></head></html>

d. <html><<head></head></body></body></html>

11. HTML tags are enclosed in-

a. # and #

b. { and }

c. ! and ?

d. < and >

12. What is the first character after a “<” in a closing tag?

a. &

b. /

c. !

d. > 

13. In HTML, the tags are __________.

a. in upper case

b. case-sensitive

c. in lowercase

d. not case sensitive

14. To create an HTML page, you need

a. text editor

b. Web browser

c. Both (a) and (b)

d. None of these

15. _______ attribute is used to change the background colour of html webpage.

a. Bgcolor

b. Background

c. Size

d. border​

16. How to insert a background image in HTML?

a. <body background = “img.png”>

b. <img background = “img.png”>

c. <bg-image = “img.png”>

d. None of the above

17. Which of the following is not a container element?

a. P

b. B

c. OL

d. HR

18. Container elements in HTML require   

a. starting tag

b. ending tag

c. starting and ending tags

d. None of the above

19. Which of the following tag does not require a terminator?

a. <U>

b. <BR>

c. <B>

d. None

20. There are __________ levels of heading in HTML.

a. Three 

b. Five

c. Six

d. Four

21. Which of the following tag is used for inserting the largest heading in HTML?

a. Head

b. <h1>

c. <h6>

d. Heading

22. Among the following, which is the HTML paragraph tag?

a. <p>

b. <pre>

c. <hr>

d. <a>

23. The <p> tag is used to denote:

a. List

b. Paragraph

c. Heading

d. None of the given.

24. Which tag is used to create a blank line in HTML?

a. <b>

b. <br>

c. <em>

d. <a>

25. Which tag do we use in HTML for inserting a line-break?

a. <a>

b. <br>

c. <b>

d. <pre>

26. Which of these elements in HTML can be used for making a text bold?

a. <a>

b. <pre>

c. <br>

d. <b>

27. Which works similar to <b> element?

a. <blockquote>

b. <strong>

c. <em>

d. <i>

28. Which HTML tag is used for making character appearance bold?

a. <u>content</u>

b. <b>content</b>

c. <br>content</br>

d. <i>content</i>

29. Which HTML tag is used to convert the plain text into italic format?

a. <b>

b. <p>

c. <i>

d. <a>

30. Which tag is used to underline the text in HTML?

a. <p>

b. <u>

c. <i>

d. <ul>

31. For obtaining indentation at 1.5 we use

a. <A> tag

b. <BLOCKQUOTE> tag

c. <DL> tag

d. <UL> tag

32. For a particular font its size attribute can be an absolute value ranging from:

a. 1-10

b. 1-9

c. 1-8

d. 1-7

33. In HTML, the correct way of commenting out something would be using:

a. ## and #

b. <!– and –>

c. </– and -/->

d. <!– and -!>

34. Which HTML tag do we use for displaying the power in the expression, (x² – y²)?

a. <p>

b. <sub>

c. <sup>

d. None of the above

35. In HTML we use ____ tag to defines subscripted text?

a. Sub

b. Subscript

c. small

d. None of the Above

36. Which tag is used to create a numbered list in HTML?

a. <ol>

b. <ul>

c. <li>

d. <ll>

37. For obtaining ordered list use the tag:

a. <H1>

b. <UL>

c. <OL>

d. <ML>

38. Which of the following is the correct way to create a list using the lowercase letters?

a. <ol alpha = “a” >

b. <ol type = “a”>

c. <ol letter = “a”>

d. None of the above

39. To start a numbered list with regular numerals, use

a. <OL type=”A”>

b. <OL>

c. <OL type=”r”>

d. <OL type=”u”>

40. To start a list with number 3, we should write

a. <OL start=”3″>

b. <OL type=”3″>

c. <OL value=”3″>

d. Any of these

41. Which of the following HTML tag is used to create an unordered list?

a. <ol>

b. <ul>

c. <li>

d. <ll>

42. UL stands for

a. Union List

b. Unique List

c. Unordered List

d. None

43. Which one of the following list type that will create a bulleted list?

a. Unordered

b. Ordered

c. Definition

d. All of these

44. To create a square bulleted list, use

a. <UL type=”circle”>

b. <OL type= “square”>

c. <UL type=”square”>

d. <UL start= “square”>

45. To start a list using circles, use

a. <UL type=”round”>

b. <OL start=”l”>

c. <UL =”circle”>

d. <UL type =”circle”>

46. In an unordered list, it is necessary to enclose each item in

a. <LI> tag

b. <UL> tag

c. <I> tag

d. <OL> tag

47. What are the types of unordered or bulleted list in HTML?

a. disc, square, triangle

b. polygon, triangle, circle

c. disc, circle, square

d. All of the above

48. Which of the following is not HTML list?

a. Ordered

b. Unordered

c. Definition

d. Dynamic

49. Which of the following will produce a solid circle bullet when given as value of type with <UL>?

a. Circle

b. Disc

c. Square

d. Rectangle

50. In <OL> and <UL>, the style of bullet or number is defined by

a. type attribute

b. style attribute

c. start attribute

d. None of the above

51. If you want to make a list of items in the form of terms and their descriptions, then you can create a _________ list.

a. Ordered

b. Unordered

c. Definition

d. Nested

52. In HTML, we use the <hr> tag for ___________.

a. horizontal ruler

b. new linen

c. new paragraph

d. vertical ruler

53. The <a> tag is

a. a container tag

b. an empty tag

c. a closing tag

d. None of these

54. Hyperlink can be created through

a. <A> tag

b. <DL> tag

c. <LINK> tag

d. <HEAD> tag

55. _________ is the default color of a hyperlink.

a. Red

b. Blue

c. Green

d. Black

56. The tag used in HTML to link a Web page with other Web page is

a. <a>

b. <h>

c. <u>

d. <l>

57. How to create a hyperlink in HTML?

a. <a link = “www.thinkandlearn.com”> thinkandlearn.com </a>

b. <a> www.thinkandlearn.com <thinkandlearn.com /a>

c. <a href = “www.thinkandlearn.com”> thinkandlearn.com </a>

d. <a url = “www.thinkandlearn.com” thinkandlearn.com /a>

58. To create a hyperlinked image

a. the image tag should be within anchor tag

b. the anchor tag should be within image tag

c. the image tag should be before the anchor tag

d. the image tag should be after the anchor tag

59. Which tag is used to insert image in the web page?

a. <IMG>

b. <IMAGE>

c. <GRAPHICS>

d. <PIC>

60. 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” />

61. Which is the required attributes in an image tag?

a. Src

b. Title

c. Height

d. None of the given.

62. For text movement use tag

a. <MARQUEE>

b. <MARKQUEE>

c. <MOVE>

d. None

63. 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

64. Which of the following is the correct way to change the font face in HTML?

a. <font name = “Calibri”> ……… </font>

b. <font face = “Calibri”> ……… </font>

c. <font = “Calibri”> ……… </font>

d. None of the above

65. Which of the following HTML tag is used to add a row in a table?

a. <th>

b. <td>

c. <tr>

d. <tt>

66. Which tag do we use to define the options present in the drop-down selection lists?

a. <list>

b. <option>

c. <dropdown>

d. <select>

67. 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>

68. Which of the following tag is used to create a text area in HTML Form?

a. <textarea> </textarea>

b. <text></text>

c. <input type=”text” />

d. <input type=”textarea” />

69. Frame tag helps us to create

a. Multiple frame web page

b. Two frame web page

c. One frame web page

d. none

70. There are _________ types of style sheets in HTML.

a. 3

b. 4

c. 12

d. None

Leave a Comment