0 votes
in HTML by

HTML5 Semantic Elements Questions and Answers on :

  • Browser Compatibility
  • Web Form 2.0
  • HTML5 Stack
  • HTML5 Input Type
  • Form Elements
  • HTML Tags
  • HTML Audio Controls
  • Canvas Elements
  • Web Apps
  • HTML Application
  • Website Cache
  • Semantic HTML5
  • Semantic Element 

1 Answer

0 votes
by
Question#1 What is the HTML5 Stack?

a) HTML5, CSS3, JavaScript

b) HTML5, PHP, MySQL

c) HTML5, CSS2, JavaScript

d) HTML5, PHP, JavaScript

Answer:-  HTML5, CSS3, JavaScript

Question#2 Which of the following input controls represents a date (year, month, day) encoded according to ISO 8601 in Web Form 2.0?

a) datetime

b) month

c) datetime-local

d) date

Answer:-  date

Question#3 What is the recommended method to detect browser compatibility for features?

a) Use Modernizr

b) Application automatically detects

c) Use navigator.UserAgent method

d) None of the options

Answer:-  Use Modernizr

Question#4 Which of the following tag represents an independent piece of content of a document in HTML5?

a) section

b) article

c) footer

d) nav

Answer:-  article

Question#5 Which HTML5 tag would you use to define footer?

a) foot

b) footer

c) body

d) bottom

Answer:-  footer

Question#6 What happens if you view a new HTML5 form input type in an older browser?

a) It does not show input

b) It reverts to standard text input

c) The form will not load

d) The page will not load

Answer:-  It reverts to standard text input

Question#7 Which of the following attributes triggers events when a form changes?

a) onforminput

b) onformchange

c) onchange

d) onedit

Answer:-  onformchange

Question#8 Which of the following tags represents a section of a document used for navigation?

a) nav

b) section

c) footer

d) navigation

Answer:-  nav

Question#9 Which of the following tags are no longer valid in HTML5?

a) align

b) p

c) span

d) div

Answer:-  align

Question#10 Which Semantic element is best suitable for content, like a blog post, that is self-contained, independent, and can be republished?

a) div

b) section

c) article

d) aside

Answer:-  section

Question#11 What are the new form elements introduced in HTML5?

a) optgroup, button, keygen

b) datalist, keygen, output

c) optgroup, button, datalist

d) datalist, keygen, button

Answer:-  datalist, keygen, output

Question#12 HTML5 audio tag has a number of attributes to control the look and feel and various functionalities of the audio player. The following are attributes of HTML5 audio element, except ________.

a) autoplay

b) controls

c) stop

d) src

Answer:-  src

Question#13 Which attribute of the video tag specifies an image to be shown while the video is downloading?

a) fig

b) src

c) img

d) poster

Answer:-  poster

Question#14 Audio element can be programmatically controlled from _______.

a) HTML or CSS or JavaScript

b) HTML

c) CSS

d) Javascript

Answer:-  HTML or CSS or JavaScript

Question#15 You can embed a video player using _______.

a) src

b) source

c) vid

d) iframe

Answer:-  iframe

Question#16 The controls attribute adds audio/video controls like PLAY, PAUSE and VOLUME.

a) True

b) False

Answer:-  True

Question#17 Audio element can be programmatically controlled from ______.

a) HTML or CSS or JavaScript

b) HTML

c) CSS

d) Javascript

Answer:-  HTML

Question#18 SVG is mostly useful for vector type diagrams like ______.

a) Charts and 3D Graphs

b) Charts and 2D Graphs

c) 2D Graphs

d) 3D Graphs

Answer:-  Charts and 2D Graphs

Question#19 How do you place a canvas element with an ID of canvas1 into a JavaScript variable?

a) var canvas1 = document.getElementById(‘canvas1’);

b) var canvas1 = document.get(‘#canvas1’);

c) var canvas1 = getElementById(‘canvas1’);

d) var canvas1 = document.getElement(‘canvas1’);

Answer:-  var canvas1 = document.getElementById(‘canvas1’);

Question#20 Which of the following is true about ‘canvas’ tag in HTML5?

(I) Easy way to draw graphics using JavaScript

(II) Can be used to make Animations

a) None of the options

b) Both I and II

c) II

d) I

Answer:-  Both I and II

Question#21 The following are true about Canvas, except _______.

a) Canvas renders graphics pixel by pixel

b) Each shape in Canvas is looked at as an object

c) Canvas is well suited for intense graphics

d) Canvas draws graphics on the fly using JavaScript

Answer:-  Each shape in Canvas is looked at as an object

Question#22 The following are true about SVG graphics, except ______.

a) Graphics in SVG are defined in XML

b) SVGs do not lose quality when zoomed

c) SVG is mostly used for graphs

d) Graphics in SVG are defined using JavaScript

Answer:-  Graphics in SVG are defined using JavaScript

Question#23 Which is best suited for applications with large rendering areas, like Google maps?

a) None of the options

b) Canvas and SVG

c) SVG

d) Canvas

Answer:-  SVG

Question#24 Scalable Vector Graphics are defined in which markup language?

a) XML

b) Native HTML

c) HTML5

d) DHTML

Answer:-  XML

Question#25 Web Apps can start faster and work even if there is no internet connection when you use ______.

a) Session Storage

b) Local Storage

c) App cache

d) Cloud

Answer:-  App cache

Question#26 Application Cache enables _______.

a) All the options

b) Reduction of Server Load

c) Offline Browsing

d) Higher Speed

Answer:-  All the options

Question#27 The following are LocalStorage functions, except ______.

a) getItem()

b) setItem()

c) getElementbyID()

d) removeItem()

Answer:-  getElementbyID()

Question#28 Which of the following APIs can be used to suggest nearby restaurants in a restaurant finder app?

a) Local Storage

b) Cache API

c) Web Workers

d) Geolocation API

Answer:-  Geolocation API

Question#29 Which API can be used to display the thumbnail image of a file being uploaded in a HTML5 photo sharing website?

a) File API

b) Web Storage API

c) Device Access API

d) Cache API

Answer:-  File API

Question#30 Which of the following attributes triggers event when an element is dragged?

a) ondragenter

b) ondrag

c) ondragevent

d) ondragdrop

Answer:-  ondrag

Question#31 Application Cache enables _______.

a) Higher Speed

b) Offline Browsing

c) Reduction of Server Load

d) All the options

Answer:-  All the options

Question#32 Which of the following attributes triggers event when the window loses focus?

a) onlastfocus

b) onblur

c) lostfocus

d) onbeforeload

Answer:-  onblur

Question#33 Websites can store data on the user’s computer using Web Storage. How is Web Storage different from Cookies?

a) More secure

b) Can store more data

c) All the options

d) Web Storage is faster

Answer:-  All the options

Question#34 Which of the following attributes specifies whether a user is allowed to drag an element or not?

a) drag

b) dragdrop

c) draggable

d) context

Answer:-  draggable

Question#35 Which of the following input controls represents a date consisting of a year and a week number encoded according to ISO 8601 in Web Form 2.0?

a) Week

b) Number

c) Range

d) Time

Answer:-  Week

Question#36 Which plugin is required to use SVG tags in HTML5?

a) Vector Graphics

b) Does not require a plugin

c) Modernizr

d) Graphics

Answer:-  Graphics

Question#37 The following are suited for game applications, except ______.

a) SVG

b) Canvas and SVG

c) Canvas

d) None of the options

Answer:-  Canvas and SVG

Question#38 A semantic element clearly describes its meaning to the ______.

a) Browser

b) Browser and Developer

c) None of the options

d) Developer

Answer:-  Browser and Developer

Question#39 Semantic HTML5 elements allows data to be shared and reused across applications, enterprises, and communities.

a) True

b) False

Answer:-  True

Related questions

0 votes
asked Feb 10 in HTML by DavidAnderson
0 votes
asked Jul 13, 2023 in Angular by sharadyadav1986
...