June 06, 2019

HTML5 - Digital Skill (TrendNXT L1)


NoteKindly prepare yourself to score good marks in HTML5. This is for TrenDNXT level 1 dumps. There may be some questions which are not listed here. To make sure read the doc very carefully, because questions would be based in the doc itself.

One Line Definitions:

1. Doctype define <!DOCTYPE html>

The <canvas> tag is used to draw graphics, on the fly, via scripting (usually JavaScript). The <canvas> tag is only a container for graphics, you must use a script to actually draw the graphics.

2. New graphic elements: <svg> and <canvas>.

3. New form control attributes: number, date, time, calendar, and range.

4. Canvas  .getContext();

5. Currently, there are 3 supported video formats for the <video> element: MP4, WebM, and Ogg:

6. Currently, there are 3 supported file formats for the <audio> element: MP3, Wav, and Ogg:

7. <datalist> Defines pre-defined options for input controls

8.<keygen> Defines a key-pair generator field (for forms)

9. The <input type="month"> allows the user to select a month and year.

10. <input type="email"> is used for input fields that should contain an e-mail address.

11. <input type="tel"> is used for input fields that should contain a telephone number.

12.  The formaction attribute overrides the action attribute of the <form> element.

13. The formaction attribute is used with type="submit" and type="image".

14. The formenctype attribute overrides the enctype attribute of the <form> element.

15. The formenctype attribute is used with type="submit" and type="image".

16. The formenctype attribute specifies how the form-data should be encoded when submitting it to the server (only for forms with method="post").

17. The formmethod attribute overrides the method attribute of the <form> element.

18. The formmethod attribute can be used with type="submit" and type="image".

19. The formnovalidate attribute overrides the novalidate attribute of the <form> element.

20. The formnovalidate attribute can be used with type="submit".

21. default width of a text field is 20 characters.

22. The <input type="time"> allows the user to select a time (no time zone).

23. <input type="datetime-local"> allows the user to select a date and time (no time zone).

24. HTML5 added several new input types

  • color
  • datetime
  • datetime-local
  • email
  • month
  • number
  • range
  • search
  • tel
  • time
  • url
  • week
25. The <article> element specifies independent, self-contained content.

26. The <figcaption> element defines the caption.

Multiple Choice Questions

Question) 
HTML5 browsers support which technology?
a.CSS2
b.CSS3
c.CSS1
d.CSS2.5

Answer) The correct answer is CSS3

Question) 
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) The correct answer is Autocomplete

Question) 
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) The correct answer is Formaction

Question) 
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) The correct answer is <input type = “text” name = “creditcardno” autocomplete = “on”>

Question) 
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) The correct answer is Required

Question) 
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) The correct answer is <input type = “tel” name = “telephone”>

Question) 
In HTML5, ------- tag is not supported?
a. Code
b.<basefont>
c .Base
d. Canvas

Answer) The correct answer is <basefont>

Question)  
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) The correct answer is Datetime

Question) 
Below is new HTML5 input type
a. Search
b. Block
c. Layout
d. List

Answer) The correct answer is Search

Question) 
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) The correct answer is Input type = “ yearandweek” 

Question)  
What type the input field has to be to contain email address
a. Email
b. Datetime-local
c. Datetime
d. Html

Answer) The correct answer is Email

Question) 
How many video formats supported for <video> element
a.4
b.2
c.3
d.1

Answer) The correct answer is 3

Question) 
How many audio formats supported for <audio> element
a.4
b.2
c.3
d.1

Answer) The correct answer is 3

Question) 
Track tag

Question) 
Preload attribute of Audio tag

Question) 
Which is not semantic
a.<form>
b.<table>
c.<img>
d.<div>

Answer) The correct answer is <div>

Question) 
In HTML5, semantic element is used for defining marking or highlighting text?
a.<highlight>
b.<mark>
c.<markup>
d.<marktext>

Answer) The correct answer is <mark>

Question) 
Which HTML5 element is used to define a caption for <figure> element?
a.<figtext>
b.<figurecaption>
c.<figcaption>
d.<figuretext>

Answer) The correct answer is <figcaption> 

Question) 
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) The correct answer is lineTo(x,y)

Question) 
Which element in HTML5 is used to draw graphics?
a.<canvas>
b.<video>
c.<svg>
d.<audio>

Answer) The correct answer is <canvas>

Question) 
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) The correct answer is Rect (x,y,width,height)

Question) 
Transformations in HTML5 are applied using 
a.Transform
b.Canvas
c.Geolocation
d.Web Storage

Answer) The correct answer is Canvas

Question) 
Which tag specifies a key-pair generator field in a form
a.<output>
b.<datalist>
c.<keygen>
d.<input>

Answer) The correct answer is <keygen>

Question) 
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) The correct answer is Private key is stored locally. public key is sent to the server

Question) 
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) The correct answer is Used to embed plugin

Question) 
Which tag defines a caption for <figure> element?
a. <form>
b. <figure>
c. <figcaption>
d. <output>

Answer) The correct answer is <figcaption>

Question) 
Elements which are not supported in HTML5?
a.<font>
b.<q>
c.<menu>
d.<ins>

Answer) The correct answer is <font>

Question) 
HTML5 is a cooperation between WWW Consortium and
a. XML
b. XAML
c. HTML
d. WHATWG

Answer) The correct answer is WHATWG

Question)  
Which tag is obsolete and not supported in HTML5?
a.<dd>
b.<br>
c.<b>
d.<big>

Answer) The correct answer is <big>

Question)   
Out of following options, which is new element in HTML5?
a.<noframes>
b.<site>
c.<div>
d.<canvas>

Answer) The correct answer is <canvas>

No comments:

Post a Comment