Web Designing MCQs

Top 20 Interview Questions On HTML5 Element Reference

Pinterest LinkedIn Tumblr

Here are the collections of 20 multiple choice interview questions on HTML5 element reference, which includes MCQ on different types of HTML5 elements and element-specific attributes. You will find the questions and answers about the elements and element-specific attributes of the definition list, forms, image, and input elements. 

1. ………………… is the element-specific attribute of <dl>, which reduces the white space between list items.
A) compact
B) reduce
C) space
D) eliminate

2. The element …………………. identifies a definition list term in a list of terms and definitions.
A) <dd>
B) <dt>
C) <dl>
D) <definition>

3. In HTML5 the element ……………….. is also used within <details> and <figure> tags to represent a caption for content.
A) <dd>
B) <dt>
C) <dl>
D) <caption>

4. The HTML5 element …………………… represents a group of content enclosed in a dd element, often with a caption defined by a dt element.
A) <map>
B) <group>
C) <figure>
D) <dl>

5. The default text size for a document can be set using the size attribute of the ………………… element.
A) <base>
B) <basefont>
C) <bdo>
D) <big>

6. ……………….. attribute of <form> element specifies the list of character encoding for input data that must be accepted by the server processing the form.
A) list-charset
B) accept-charset
C) action-charset
D) form-charset

7. ………………… attribute contains the URL of the server program that will process the contents of the form.
A) src
B) ismap
C) action
D) desc

8. ………………… attribute in <img> element indicates that the URL of the server program that will process the contents of the form.
A) src
B) ismap
C) action
D) desc

9. …………….. attribute in image element specifies the URL of a document that contains a long description of the image.
A) desc
B) longURL
C) longdesc
D) deepdesc

10. …………….. is the nonstandard attribute, which contains the URL of an image to be initially loaded.
A) lowsrc
B) src
C) start
D) desc

11. …………… attribute makes the image support client-side image mapping.
A) usemap
B) map
C) border
D) imgmap

12. ……………. is the element-specific attribute of <input> element, which is used to list the MIME types accepted for the uploads when using a file upload control.
A) form
B) accept
C) fromaction
D) upload

13. ……………… is the HTML5  attribute used in <input> element target when the button is clicked.
A) form
B) formenctype
C) fromaction
D) action

14. ……………… attribute in <input> element indicates how form data should be encoded before being sent to the server.
A) form
B) formenctype
C) fromaction
D) action

15. ………………… form elements will not be submitted, nor will they receive any focus from the keyboard or mouse.
A) paused
B) disabled
C) closed
D) inactive

16. ………………… is the HTML5 attribute used in <input> elements that specifies a regular expression against which the field should be validated.
A) format
B) pattern
C) validate
D) required

17. The HTML5 attribute ……………………. specifies a short bit of text that is used to help the user figure out what type of information to fill in for a form of control.
A) placeholder
B) pattern
C) type
D) value

18. Which of the following is/are the values used in the type attribute used in <input> element.
i) button   ii) file   iii) textbox   iv) radio
A) i, ii and iii only
B) i, iii and iv only
C) i, ii and iv only
D) All i, ii, iii and iv

19. A value of ……………. for the type attribute used in <input> element indicates a control that allows the viewer to upload file to a server.
A) text
B) upload
C) file
D) object

20. A ……………….. form control often is used to preserve state information between pages.
A) hidden
B) preserved
C) stored
D) transferred

Answers

1. A) compact
2. B) <dt>
3. B) <dt>
4. C) <figure>
5. B) <basefont>
6. B) accept-charset
7. C) action
8. B) ismap
9. C) longdesc
10. A) lowsrc
11. A) usemap
12. B) accept
13. C) fromaction
14. B) formenctype
15. B) disabled
16. B) pattern
17. A) placeholder
18. C) i, ii and iv only
19. C) file
20. A) hidden

Read Next:Top 20 Objective Questions On HTML5 Element Reference

Author

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 8 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

Comments are closed.