Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

1. HTML5 browsers support which technology?

a. CSS2
b. CSS3
c. CSS1
d. CSS2.5
Answer CSS3

2. Which HTML5 form attribute is used to instruct browser automatically complete values based on values that the user
has entered before
a. Autoaction
b. Autofocus
c. Autocomplete
d. Autovalidate

Answer is Autocomplete

3. Which HTML5 attribute specifies the URL of a file that will process the input control when the form is submitted
a. Formaction
b. Formenctype
c. Formmethod
d. Formvalidate

answer is Formaction

4. What is the HTML5 syntax to enable autocomplete feature?


a. <input type = “text” name = “creditcardno” autocomplete = “1”>
b. <input type = “text” name = “creditcardno” autocomplete = “on”>
c. <input type = “text” name = “creditcardno” autocomplete = “true”>
d. <input type = “text” name = “creditcardno” autocomplete = “enable”>

Answer is <input type = “text” name = “creditcardno” autocomplete = “on”>

5. HTML5 attribute that specifies that an input field must be filled out before submitting the form
a. Regular expression
b. Mandatory
c. Validate
d. Required

Answer is Required

6. Correct syntax in HTML5 for designing a telephone number field?


a. <input type = “telephone” name = “telephone”>
b. <input type = “tel” name = “telephone”>
c. <input type = “tele” name = “telephone”>
d. <input type = “phone” name = “telephone”>

Answer is <input type = “tel” name = “telephone”>

7. In HTML5, ------- tag is not supported?


a. Code
b. <basefont>
c. Base
d. Canvas

Answer is <basefont>

8. Which HTML5 input type allows users to select a date and time with time zone?
a. Datetime
b. Datetime-local
c. Datetime-timezone
d. Datetime-zone

Answer is Datetime

9. Below is new HTML5 input type


a. Search
b. Block
c. Layout
d. List
answer is Search
10. Which HTML5 input type allows a user to select a year and week
a. Input type = “ yearandweek”
b. Input type = “ weekandyear”
c. Input type = “weekyear”
d. Input type = “week”

answer is a Input type = “ yearandweek”

11. What type the input field has to be to contain email address
a. Email
b. Datetime-local
c. Datetime
d. Html
Answer is Email
12. How many video formats supported for <video> element
a. 4
b. 2
c. 3
d. 1
Answer is 3
13. How many audio formats supported for <audio> element
a. 4
b. 2
c. 3
d. 1
Answer is 3

14. Track tag


15. Preload attribute of Audio tag
16. Which is not semantic
a. <form>
b. <table>
c. <img>
d. <div>
Answer is div
17. In HTML5, semantic element is used for defining marking or highlighting text?
a. <highlight>
b. <mark>
c. <markup>
d. <marktext>
Answer is <mark>
18. Which HTML5 element is used to define a caption for <figure> element?
a. <figtext>
b. <figurecaption>
c. <figcaption>
d. <figuretext>
Answer is <figcaption>

19. To draw straight lines on canvas, which methods are used?


a. moveTo(x,y) and lineTo(x,y)
b. moveTo(x,y)
c. moveTo(x,y) and strokeText(x,y)
d. lineTo(x,y)
answer is lineTo(x,y)

20. Which element in HTML5 is used to draw graphics?


a. <canvas>
b. <video>
c. <svg>
d. <audio>
Answer is <canvas>

21. Which method in canvas is used to create a rectangle?


a. Rectangle(x,y,width,height)
b. Rect (x,y,width,height)
c. CreateRect (x,y,width,height)
d. CreateRectangle(x,y,width,height)

Answer is Rect (x,y,width,height)

22. Transformations in HTML5 are applied using


a. Transform
b. Canvas
c. Geolocation
d. Web Storage

Answer is Canvas

23. Which tag specifies a key-pair generator field in a form


a. <output>
b. <datalist>
c. <keygen>
d. <input>
Answer is <keygen>
24. Where the keys are stored which has been generated using <keygen> element?
a. Private key is stored locally. public key is sent to the client
b. Private key is stored in server. public key is stored locally
c. Private key is sent to the client. public key is stored locally
d. Private key is stored locally. public key is sent to the server

Answer is Private key is stored locally. public key is sent to the server

25. Use of <embed> tag?


a. Used to embed plugin
b. Used to embed text
c. Used to embed canvas
d. Used to embed JS
Answer is Used to embed plugin

26. Which tag defines a caption for <figure> element?


a. <form>
b. <figure>
c. <figcaption>
d. <output>
Answer is <figcaption>
27. Elements which are not supported in HTML5?
a. <font>
b. <q>
c. <menu>
d. <ins>
Answer is <font>
28. HTML5 is a cooperation between WWW Consortium and
a. XML
b. XAML
c. HTML
d. WHATWG
Answer is WHATWG
29. Which tag is obsolete and not supported in HTML5?
a. <dd>
b. <br>
c. <b>
d. <big>
Answer is <big>
30. Out of following options, which is new element in HTML5?
a. <noframes>
b. <site>
c. <div>
d. <canvas>
Answer is <canvas>

You might also like