HTML5 Multiple choices

Total available count: 25
Subject - Web Development
Subsubject - HTML5

What is the correct HTML5 element for playing video files?







HTML5 features include native audio and video support without the need for Flash. The HTML5 <audio> and <video> tags make it simple and easy to add media to a website. You require to set the src attributes to identify the media source and include a controls attribute so the user can play and pause the media.

The following is the simplest form of Embedding a video file on your web page,

<video src = "slightbook.mp4" width = "600" height = "250" controls>
  Your web browser does not support the <video> element.

The current HTML5 draft specification does not specify which video formats web browsers should support in the video tag. But most commonly used video formats are as follows −

Ogg: Ogg files with Thedora video codec and Vorbis audio codec.

mpeg4: MPEG4 files with H.264 video codec and AAC audio codec.

You can use the <source> tag to specify media along with media type and many other attributes. A video element permits multiple source elements and the web browser will use the first recognized format only.

   <video width = "600" height = "250" controls autoplay>
    <source src = "/html5/slightbook.ogg" type ="video/ogg" />
    <source src = "/html5/slightbook.mp4" type = "video/mp4" />
    Your browser does not support the <video> element.


Next 5 multiple choice(s)


What is the correct HTML5 element for playing audio files?


Which attribute for <script> elements is no longer required in HTML5?


In HTML5, which method is used to get the current location of a user?


The new HTML5 global attribute, "contenteditable" is used to:


In HTML5, contextmenu and spellcheck are: