MCQ Questions On HTML5 Element Reference Part-2

Here are the collections of 20 multiple choice objective questions on HTML5 elements reference, that includes MCQ on different types of HTML5 elements and element specific attributes. You will find the questions and answers about formenctype and formmethod attributes, canvas shadow properties, different values used in formmethod attributes along with the different method used to draw shapes using canvas methods.

1. In HTML5 ................... attribute is set to the MIME type for how data should be transmitted to the URL specified in the action attribute.
A) formenctype
B) formmethod
C) formtarget
D) formvalidate

2. In HTML5 ................. attribute indicates how form information should be transferred to the server using particular HTTP method.
A) formenctype
B) formmethod
C) formtarget
D) formvalidate

3. A ............. value in the formmethod attribute within button element indicates that form data should be appended to the URL specified by the action attribute creating a query string.
A) post
B) get
C) put
D) delete

4. A value of ..................... for formmethod attribute transfers that data of the form in the message body using the HTTP post method.
A) post
B) get
C) put
D) delete

5. In HTML5 ................. attribute is set to the name of a window or frame that the button action will target the result of action, similar to the target attribute on <a> and <form> tags.
A) formenctype
B) formmethod
C) formtarget
D) formvalidate

6. In primary canvas method .................. returns an object that exposes the API necessary for accessing the drawing functions.
A) width
B) height
C) toDataURL
D) getContext

7. Which of the following is NOT the canvas rectangle method
A) clearRect
B) fillRect
C) drawRect
D) strokeRect

8. Which of the following is/are the canvas shadow properties of HTML5.
i) shadowBlur    ii) shadowLine   iii) shadowColor   iv) shadowOffsetX
A) i, ii and iii only
B) ii, iii and iv only
C) i, iii and iv only
D) All i, ii, iii and iv only

9. .................. method of canvas rectangle draws the outline for the rectangle defined by the starting point(x,y) and the width w and height h.
A) drawRect(x,y,w,h)
B) strokeRect(x,y,w,h)
C) fillRect(x,y,w,h)
D) outlineRect(x,y,w,h)

10. ...................... attribute of <col> element is used to set the character on which the cells in a column should be aligned.
A) span
B) char
C) charoff
D) align

11. In HTML5 <col> element, .............. attribute is used to  indicate the number of characters by which the column data should be offset from t he alignment characters specified by the char value.
A) span
B) char
C) charoff
D) align

12. .................... attribute applies the attributes of the col element to additional consecutive columns.
A) span
B) char
C) charoff
D) align

13. A typical value for .................. attribute is a period ( . ) for aligning numbers or monetary values.
A) span
B) char
C) charoff
D) align

14. The default value of span attribute of <colgroup> element is ...............
A) 1
B) 2.
C) 3
D) 0

15. The HTML5 element ...................... contains option elements that populate an input element with type="list".
A) <datalist>
B) <dt>
C) <dd>
D) <command>

16. Under HTML5, ................. element has an overloaded meaning and may also be used to enclose the content within <details> and <figure> tags.
A) <datalist>
B) <dt>
C) <dd>
D) <command>

17. The HTML5 element ................ represents additional information or interactive elements that can be shown on demand.
A) <details>
B) <explained>
C) <dd>
D) <additional>

18. HTML5 suggests that t he section or content grouping nearest an occurrence of a ................... element must contain the actual definition.
A) details
B) dir
C) dd
D) dfn

19. The .................... element indicates a generic block of content that should be treated as a logical unit for scripting or styling purposes.
A) division
B) definition
C) details
D) directory list

20. The common uses of ................... element is to implement a glossary.
A) <dl>
B) <dt>
C) <div>
D) <dir>

Answers

1. A) formenctype
2. B) formmethod
3. B) get
4. A) post
5. C) formtarget
6. D) getContext
7. C) drawRect
8. C) i, iii and iv only
9. B) strokeRect(x,y,w,h)
10. B) char
11. C) charoff
12. A) span
13. B) char
14. A) 1
15. A) <datalist>
16. C) <dd>
17. A) <details>
18. D) dfn
19. A) division
20. A) <dl>

Read Next:

MCQ Questions On HTML5 Element Reference Part-2
2017-03-04T00:40:00-08:00
Shuseel Baral
HTML5|Internet & Web Designing|Multiple Choice Question (MCQ)|