html mcq

HTML MCQ set-1

1. A webpage displays a picture. What tag was used to display that picture?

a. picture

b. image

c. img

d. src

c. img 

2. <b> tag makes the enclosed text bold. What is another tag to make text bold?

a. <strong>

b. <dar>

c. <black>

d. <emp>

a. <strong>   

3. Tags and text that are not directly displayed on the page are written in _____ section.

a. <html>

b. <head>

c. <title>

d. <body>

b. <head> 

4. Which tag inserts a line horizontally on your web page?

a. <hr>

b. <line>

c. <line direction=”horizontal”>

d. <tr>

a. <hr> 

5. What should be the first tag in any HTML document?

a. <head>

b. <title>

c. <html>

d. <document>

c. <html>

6. Which tag allows you to add a row in a table?

a. <td> and </td>

b. <cr> and </cr>

c. <th> and </th>

d. <tr> and </tr>

d. <tr> and </tr> 

7. How can you make a bulleted list?

a. <list>

b. <nl>

c. <ul>

d. <ol>

c. <ul>

8. How can you make a numbered list?

a. <dl>

b. <ol>

c. <list>

d. <ul>

b. <ol>

9. How can you make an email link?

a. <a href= “abc@xyz”>

b. <mail href= “abc@xyz”>

c. <mail>abc@xyz</mail>

d. <a href= “mailto:abc@xyz”>

a. <a href= “abc@xyz”> 

10. What is the correct HTML for making a hyperlink?

a. <a href=”http://www.computerkite.com”>Computerkite</a>

b. <a name=”http://www.computerkite.com”>Computerkite</a>

c. <http://www.computerkite.com</a>

d. url=”http://www.computerkite.com”>Computerkite

a. <a href=”http://www.computerkite.com”>Computerkite</a> 

11. Choose the correct HTML tag to make a text italic.

a. <ii>

b. <italics>

c. <italic>

d. <i>

d. <i>

12. Choose the correct HTML tag to make a text bold.

a. <b>

b. <bold>

c. <bb>

d. <bld>

a. <b>

13. What is the correct HTML for adding a background color?

a. <body color= “yellow”>

b. <body bgcolor= “yellow”>

c. <background>yellow</background>

d. <body background= “yellow”>

b. <body bgcolor= “yellow”>   

14. Choose the correct HTML tag for the smallest size heading?

a. <heading>

b. <h6>

c. <h1>

d. <head>

b. <h6>   

15. What is the correct HTML tag for inserting a line break?

a. <br>

b. <lb>

c. <break>

d. <newline>

a. <br> 

16. What does the vlink attribute mean?

a. visited link

b. virtual link

c. very good link

d. active link

a. visited link   

17. Which attribute is used to name an element uniquely?

a. class

b. id

c. dot

d. all of the above

b. id

18. Which tag creates a check box for a form in HTML?

a. <checkbox>

b. <input type= “checkbox”>

c. <input=checkbox>

d. <input checkbox>

b. <input type= “checkbox”>

19. To create a combo box (drop-down box), which tag will you use?

a. <select>

b. <list>

c. <input type= “dropdown”>

d. all of the above

a. <select>

20. Which of the following is not a pair tag?

a. <p>

b. < u >

c. <i>

d. <img>

d. <img>   

21. To create an HTML document, you require a…………

a. web page editing software

b. High-powered computer

c. Just a notepad can be used

d. None of these

c. Just a notepad can be used   

22. The special formatting codes in an HTML document used to present content are………..

a. tags

b. attributes

c. values

d. None of the above

a. tags

23. HTML documents are saved in……….

a. Special binary format

b. Machine language codes

c. ASCII text

d. None of the above

c. ASCII text   

24. Some tags enclose the text. Those tags are known as………..

a. Couple tags

b. Single tags

c. Double tags

d. Pair tags

d. Pair tags   

25. The _____ character tells browsers to stop tagging the text……….

a. ?

b. /

c. >

d. %

b. /     

26. In an HTML document, the tags………

a. Should be written in upper case

b. should be written in lower case

c. should be written in proper case

d. can be written in both uppercase and lowercase

d. can be written in both uppercase and lowercase

27. Marquee is a tag in HTML to……….

a. Mark the list of items to maintain in the queue

b. Mark the text so that it is hidden in the browser

c. Display text with a scrolling effect

d. None of the above

c. Display text with a scrolling effect

28. There are ____ different of heading tags in HTML.

a. 4

b. 5

c. 6

d. 7

c. 6   

29. To create a blank line in your web page…..

a. press Enter two times

b. press Shift + Enter

c. insert <BR> tag

d. insert <BLINE>

c. insert <BR> tag

30. Which of the following is not a style tag?

a. <b>

b. <tt>

c. <i>

d. All of the above are style tags

d. All of the above are style tags   

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

a. attributes

b. parameters

c. modifiers

d. None of the above

a. attributes   

32. Which of the following HTML codes is valid?

a. <font colour= “red”>

b. <font color=”red”>

c. <red><font>

d. All of the above are style tags

b. <font color=”red”> 

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

a. size

b. face

c. color

d. All of the above

d. All of the above

34. HTML supports…..

a. ordered lists

b. unordered lists

c. both types of lists

d. does not support those types

c. both types of lists   

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

a. LI

b. OL

c. UL

d. None of the above

a. LI   

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

a. path is optional and not necessary

b. when the location of the image file and the HTML file are different

c. when the image file and HTML file are both in the same location

d. A path is always necessary when inserting an image

b. when the location of the image file and the HTML file are different

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

a. Left

b. Right

c. Top

d. All of the above

c. Top

38. Which attribute is used with the img tag to display the text if the image cannot load in the browser?

a. description

b. name

c. alt

d. id

c. alt 

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

a. background= “green”

b. bgcolor= “green”

c. vlink= “green”

d. None of the above

b. bgcolor= “green” 

40. Which attribute will you use with the TD tag to merge two cells horizontally?

a. merge=colspan2

b. rowspan=2

c. colspan=2

d. merge=row2

c. colspan=2

41. A webpage displays a picture. What tag was used to display that picture?

a. picture

b. mage

c. img

d. src

c. img

42. What is the file extension used for an HTML file?

a. .webpage

b. .shtml

c. .html

d. .doc

c. .html 

43. The <i> tag makes text……?

a. Bold

b. Inline

c. Underline

d. Italic

d. Italic

44. Besides <B>, another way to make text bold is what?

a. <fat>

b. <strong>

c. <dark>

d. <emp>

b. <strong> 

45. The tags for an ordered list are….

a. <ol> and </ol>

b. <ul> and </ul>

c. <li> and </li>

d. <th> and </th>

a. <ol> and </ol>

46. To create a bulleted list or unordered list, the tag is used….

a. <ol>

b. <il>

c. <bullet>

d. <ul>

d. <ul>   

47. Which tag is used to insert images into your web page?

a. Img

b. Scr

c. Pic

d. Image

a. Img

48. What does vlink mean?

a. Active link

b. Virtual link

c. Visited link

d. Very good link

c. Visited link   

49. Which specifies a unique value for an element?

a. Id

b. Class

c. (dot)

d. All of the above

a. Id   

50. Which HTML heading is the same as the default font size?

a. H1

b. H2

c. H3

d. H4

d. H4   

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top