HTML MCQ Questions and Answers PDF [230 MCQs for all exams]

HTML MCQ questions and answers PDF. Objective multiple choice question answer pdf download. Helpful for interview, viva, Quiz, HSC, O level, Class 10, Class 8, COPA, JOA IT & all other competitive exams.

HTML MCQ Questions and Answers PDF

1. HTML is used to create

a) Web server

b) Word document

c) Web page

d) Database

Ans. c

2. How to embed audio files in html

a) <embed src  = “mysong.mid” width = “100” height = “15”>

b) <embed sound  = “mysong.mid” width = “100” height = “15”>

c) <embed audio  = “mysong.mid” width = “100” height = “15”>

d) <embed music  = “mysong.mid” width = “100” height = “15”>

Ans. a

3. What is tag tt tag in html

a) It renders fonts as teletype text font style

b) It renders fonts as truetype text font style

c) It renders fonts as truncate text font style

d) None of these

Ans. a

4. How many heading tags are supported by HTML?

a) 3

b) 4

c) 5

d) 6

Ans. d

5. HTML supports

a) ordered list

b) unordered list

c) both type lists

d) Does not support those types

Ans. c

6. HTML is derived from

a) URL

b) SGML

c) TCP/IP

d) Browsers

Ans. b

7. What is the first tag in html document?

A) <html>       

B) <head>     

C) <title>        

D) </html>

Ans. a

8. Which html tag inserts a line horizontally in a page?

A) <lr>

B) <l>             

C) <hr>           

D) <line>

Ans. c

9.What are the two main parts, available in html document?

A)Title and Body          

B)Head and title

C)Head and Body        

D)Head and document

  Ans. c

10.Which character in html is used to indicate end tag?

A) \                       

B) /                 

C) !                  

D) <#

 Ans. b

11. Which symbols starts with html comments?

A) <!                     

B) </                

C) <#              

D) <\

 Ans. a

12. Which attribute is used with <td> tag to merge two cells horizontally?

A) Colspan = 2         

B) Rowspan = 2

C) Mergerows           

D) mergecols

Ans. a

13. Which tag creates a checkbox for a form in html?

A) <check box>                     

B) <input check box>

C) <input = check box>       

D) <input type = “check box”>

Ans. d

14. Which html tag is used to add a row in a table?

A) <tr> and </tr>        

B) <cr> and </cr>

C) <th> and </th>     

D) <td> and </td>

Ans. a

15. Which html tag is used to divide a row into data cells?

A) <tr> and </tr>        

B) <cr> and </cr>

C) <th> and </th>     

D) <td> and </td>

Ans. d

16. Which is the correct syntax for adding alternate text for image, if the image cannot be displayed?

A) <imgsrc = “boat.gif” alt = “big boat”>

B) <imgsrc = “boat.gif” alt text = “big boat”/>

C) <imgsrc = “boat.gif” alternate = “big boat”/>

D) <imgsrc = “boat.gif” alternate text = “big boat”/>

Ans. a

17. Which is the correct H1 tag for right alignment?

A <h1 align = “right”>…..</h1>

B <h1 tag align = “right”>…..</h1>

C <h1 align = “r”>…..</h1>

D <h1 alignment = “right”>…..</h1>

Ans. a

18.What is the correct syntax for making a hyperlink?

A <http: // “https://www.myheetson.blogspot.com”</a>

B <url = “https: // www.myheetson.blogspot.com”>heetson

C <a href = “https:// www.myheetson.blogspot.com”>heetson</a>

D <a ref = “https:// www.myheetson.blogspot.com”>heetosn</a>

 Ans. c

19. Which is the correct tag for adding iframe in html?

A <iframe https://www.myheetson.blogspot.com></iframe>

B <iframe =”https:// www.myheetson.blogspot.com”></iframe>

C <iframesrc = “https://www.myheetson.blogspot.com”></iframe>

D <iframehref = “https:// www.myheetson.blogspot.com”></iframe>

 Ans. c

20. what is the correct html tag for adding a background color?

A <body color = “Yellow”>                  

B <body bgcolor = “Yellow”>

C <body background = “Yellow”>     

D <body bg = “Yellow”>

Ans. b

21. How do you add a link which will allow the visitor to send an email from the page?

A <a href = “mailto :youradderss”>                

B <a href = “sendmailtoyour address”>

C <a=”mailto”>                                                  

D <href = “mailto”>

 Ans. a

22. What will happen, If the background image is smaller than the screen, what will happen?

A It will be stretched

B It will leave a blank space at the bottom of the page

C It will leave a blank space at the top of the page

D It will be repeated

Ans. d

23. which is the correct html tag for making a text input field?\

A <text type = “Text”>               

B <input type = “text”>

C <input type = “textfield”>     

D <input type = “textbox”>

Ans. b

24. Which is the correct html tag for creating password field?

A <text type = “password”>

B <input type = “pwd”>

C <input type = “password”>         

D <input type = “passcode”>

Ans. c

25. What is the correct html code for inserting a background image?

A <Body background = “image jpg”>       

B <body = “image.jpg”>

C <background = “image.jpg”>                 

D <body background = image.jpg>

Ans. a

26. Which option will match, while making bulleted list?

A Square, disc, polygon                

B triangle, disc, circle

C triangle, square, circle                

D disc, circle, square

Ans. d

27. What is the meaning of increase the cell padding?

A Increase the thickness of table border

B Increase the space between cells

C Increase the distance between cell and content

D Increase the no of cells

Ans. c

28. Which property of cells will how many rows a cell should span?

A Colspan = 5          

B Rowspan = 5

C Cellspan = 5        

D Span = 5

Ans. b

29. Which web language give more control over the HTML elements and allows them to change at any time without returning to the Web server?

A BML           

B XML           

C HTML        

D DHTML

Ans. d

30. <a> tag in HTML

a) Alters a hyperlink                       

b) Defines a hyperlink       

c) Deletes a hyperlink        

d) Accuses a hyperlink

Ans. b

31. Which tag defines value of a term in description list?

a) <a>            

b) <val>         

c) <del>         

d) <dd>

Ans. d

32. A control’s ______ is given by its name attribute.

a) Control name      

b) Area          

c) Sphere      

d) Quotation

Ans. a

33. There are how many types of HTML controls?

a) 8                

b) 7                

c) 4                 

d) 5

Ans. b

34. In DHTML what does D stand for?

a) Down        

b) Drain         

c) Dead         

d) Dynamic

Ans. d

35. What is the full form of DHTML?

a) Digital Host markup language             

b) Dynamic hypertext markup language

c) Digital higher text markup language   

d) Dynamic higher markup language

Ans. b

36. From which tag descriptive list starts

a) <LL>          

b) <dd>          

c) <DL>         

d) <DS>

Ans. c

37. The attribute of <form> tag

a) Method     

b) Action       

c) Both A and B       

d) None of these

Ans. c

38. What are empty elements and is it valid?

a) No, there is no such terms as empty elements

b) Empty elements are elements with no data

c) No, it is not valid to use empty element

d) None of these

Ans. b

39. Which of the following attributes of text box control allow to limit the maximum character?

a) size                       

b) len             

c) maxlength            

d) All of these

Ans. c

40. HTML is a subset of

a) SGMT       

b) SGML       

c) SGMD       

d) None of these

Ans. b

HTML MCQ questions and answers pdf [Download] 230 Question
HTML MCQ PDF [Top 40 Questions] Crack Every Exam
JavaScript MCQ Questions and Answers PDF [340 JS MCQs]
CSS MCQ Questions and answers PDF [120 Important MCQs]
Computer GK [10000 MCQ PDF] Questions for Competitive Exams