HTML5/Html5 MCQ Sample Test,Sample questions

Question:
 All html5 tags must ..........

1.Uppercase

2.Lowercase

3.Both Uppercase & Lowercase

4.None of the above


Question:
 An article element contains -

1. Text or embedded content

2.Image

3.Audio

4.None of these


Question:
 The following HTML4 elements have been removed in HTML5:

1. <applet>

2. <center>

3. <dir>

4. All of the above


Question:
 The html5 specification includes ...........

1.Data storage

2.Graphics APIs

3..Other APIs for web apps

4.All of the above


Question:
 The __________ element may contain not just links but also other interactive items, including the newly introduced command element.

1. menu

2.meter

3.details

4.progress


Question:
 Which of the following attribute triggers event at the start of a drag operation?

1. ondragleave

2.ondrag

3.ondragover

4.ondragstart


Question:
 Which of the following attribute triggers event when an element has been dragged to a valid drop target?

1.ondragleave

2.ondrag

3.ondragend

4.ondragenter


Question:
 Which of the following attribute triggers event when the browser starts to load the media data?

1. onloadedmetadata

2.onloadstart

3.onmessage

4.onoffline


Question:
 Which of the following element is used for or styling HTML5 layout?

1. CSS

2.PHP

3.JavaScript

4.jQuery


Question:
 Which of the following input control accepts only numerical value in Web Form 2.0?

1.week

2. time

3.number

4.range


Question:
 Which of the following is not a HTML5 added form element?

1. <keygen>

2.<output>

3.<password>

4..<datalist>


Question:
 Which of the following is true about 'audio' tag in HTML5?

1. Commonly used audio formats ogg, mp3 and wav are supported.

2.You can use <source> tag to specify media along with media type and many other attributes.

3. An audio element allows multiple source elements and browser will use the first recognized format.

4. All of the above


Question:
 _____________ is not a Boolean attribute

1.. Formvalidate

2.Formtarget

3.Novalidate

4.None of the above


Question:
 _____________feature was already introduced before HTML5.

1. Video

2.Canvas/SVG

3.Frames

4. All of the above


Question:
 _____________is the replacement for cookies in HTML5.

1. Java scripts

2.Web beacons

3. Local Storage

4. All of the above


Question:
. Choose the item below that is not an html5 element.

1.footer

2.article

3.wrapper

4.figcaption


Question:
. Which of the following element may contain not just links but also other interactive 
items, including the newly introduced command element.

1.meter

2.progress

3.details

4.menu


Question:
8. Which of the following element does not support autofocus attribute?

1. <input>

2. <base>

3. <select>

4. both 1 & 2


Question:
An article element contains ...........

1. Image

2.Video & Audio

3.Text or embedded content

4. All of the above


Question:
An article element contains ............

1. Audio

2.Image

3..Text or embedded content

4.None of the above


Question:
Choose the item below that is not an html5 element.

1. article

2.wrapper

3.footer

4.None of the above


Question:
hat is the replacement for cookies in HTML5?

1. Local Storage

2.Java scripts

3.Web beacons

4.None of the Above


Question:
How many new form elements are introduced in HTML5?

1.2

2.3

3.4

4.7


Question:
The default character encoding in HTML5 is.

1.UTF-8

2. UTF-16

3.. UTF-32

4.None of the above


Question:
The html5 specification does not includes ........

1.Data storage

2.Graphics APIs

3.Networking

4.Other APIs for web apps


Question:
The most interesting new API's in HTML5 are -

1.HTML Geolocation & HTML Application Cache

2.HTML Drag and Drop & HTML Web Workers

3.HTML Local Storage & HTML SSE

4. All of the above


Question:
The new form elements are introduced in HTML5 is -

1.2

2.3

3.4

4.None of the above


Question:
What are the most interesting new API's in HTML5?

1.HTML Local Storage & HTML SSE

2.HTML Drag and Drop & HTML Web Workers

3.HTML Geolocation & HTML Application Cache

4.All of the above


Question:
What are the new form elements introduced in html5?

1.2

2.3

3.4

4.None of the above


Question:
What is the correct syntax of doctype in html5?

1.<:/doctype html>

2.<:doctype html>

3.<:!doctype html>

4.<:!DOCTYPE html>


Question:
What is the replacement for cookies in HTML5?

1.Java scripts

2.Local Storage

3.Web beacons

4. All of the above


Question:
Which among the following browsers have support to html5?

1.Safari

2.Chrome

3..Internet Explorer

4.All of the above


Question:
Which browsers does the HTML5 supports?
 

1.Firefox

2.Safari

3. Internet Explorer

4. All the mentioned above


Question:
Which element is used to get highlighted text in HTML5?

1.<u>

2.<b>

3..<mark>

4.<highlight>


Question:
Which element was not removed by HTML5?

1. <big>

2.<small>

3.<strike>

4.<center>


Question:
Which feature was already introduced before HTML5?

1.Video

2.Frames

3. Canvas/SVG

4.Geolocation


Question:
Which is not semantic element for text in HTML5?

1. <time>

2.<mark>

3. <article>

4. All of the above


Question:
Which of the following are table tags?

1. table, thead, tr, td

2.table, tt, tr, td

3.colspan, table, tr

4.None of the above


Question:
Which of the following attribute is used to group elements?

1.item

2.itemprop

3.itemcheck

4.itemgroup


Question:
Which of the following attribute specifies a keyboard shortcut to access an element in HTML5?

1.accesskey

2.contextkey

3.contextmenu

4.key


Question:
Which of the following attribute specifies the context menu for an element?

1.Key

2.Context

3.Contextmenu

4.Contextcontent


Question:
Which of the following browser supports HTML5 in its latest version?

1.Apple Safari

2.Google Chrome

3.Both A & B

4.None of the above


Question:
Which of the following element does not support autofocus attribute?

1.<input>

2.<base>

3.<select>

4.None of the above


Question:
Which of the following element is used for or styling HTML5 layout?

1. PHP

2.CSS

3.jQuery

4.JavaScript


Question:
Which of the following feature is a part of HTML 5?

1.Persistent Local Storage

2.WebSocket

3.Server-Sent Events

4. All of the above


Question:
Which of the following input control accepts only numerical value in Web Form 2.0?

1. Time

2.week

3.Number

4.Range


Question:
Which of the following is a new input attributes introduced by html5?

1. text

2.date

3.submit buttons

4.checkbox controls


Question:
Which of the following is correct about custom attributes in HTML5?

1. A custom data attribute starts with data- and would be named based on your requirement.

2.- You would be able to get the values of these attributes using JavaScript APIs or CSS in similar way as you get for standard attributes.

3. Both of the above.

4.None of the above


Question:
Which of the following is correct Content-type header that a server side script should send for SSE in HTML5?

1. Content-Type: text/event-stream

2.Content-Type: text/application-stream

3.Content-Type: text/data-stream

4.None of the above


Question:
Which of the following is not a Boolean attribute?

1.Novalidate

2.Formtarget

3.Formvalidate

4.None of the above


Question:
Which of the following is not a HTML5 tag?

1. <:track>

2.<:source>

3.<:slider>

4.<:video>


Question:
Which of the following is not semantic element for text in HTML5?

1. <wbr>

2.<time>

3..<mark>

4..<article>


Question:
Which of the following is true about 'video' tag in HTML5?

1.Ogg files with Thedora video codec and Vorbis audio codec are supported.

2.HTML5 supports video tag which is used to embed a video file in an HTML or XHTML document.

3.The current HTML5 draft specification does not specify which video formats browsers should support in the video tag.

4.All of the above


Question:
Which of the following tag automatically focus one particular form field in HTML5?

1. output

2.placeholder

3.autofocus

4.required


Question:
Which of the following tag insists to have a value in an input control in HTML5?

1. required

2.output

3.autofocus

4.placeholder


Question:
Which of the following tag is used with JavaScript?

1. <table>

2.<canvas>

3. <article>

4. <footer>


Question:
Which of the following tag is used with javascript?

1.<table>

2.<article>

3.<canvas>

4.<footer>


Question:
Which of the following tag represents a piece of content that is only slightly related to the rest of the page in HTML5?

1.Section

2.Article

3.Header

4.Aside


Question:
Which tag is used with javascript?

1.<table>

2.<footer>

3.<article>

4.<canvas>


Question:
__tag is used to specify an inline frame.

1.< jframe>

2.< frame>

3.< iframe>

4.< frameset>


Question:
__________is not a HTML5 tag.

1. <source>

2. <video>

3. <slider>

4.All of the above


Question:
______________ is the correct syntax of doctype in HTML5.

1. </doctype html>

2.<doctype html!>

3.<!doctype html>

4. All of the above


More MCQS

  1. HTML Mcq Question 2021
  2. Html5 MCQ
Learn Html5 MCQ,Learn HTML5 Objetive choice questions and answers,HTML5 Multiple choice questions and answers,HTML5 objective, HTML5 questions , HTML5 answers,HTML5 MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!