This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “HTML5 Semantics & YouTube Videos”.
1. Which element is known as HTML plaintext element?
Explanation: <plaintext> element renders everything following start tag as raw text, without interpreting any HTML. There is no need for closing tag since everything written after this tag is considered as raw text.
2. Which element allows insertion of empty spaces on pages?
Explanation: <spacer> is an obsolete HTML element. It allows insertion of empty spaces on pages. It was devised by Netscape to accomplish same effect as single-pixel layout image. <spacer> no longer supported by any major browser and same effects can be achieved by using CSS.
3. Which element is known as HTML Example Element?
Explanation: HTML Example Element renders text between start and end tags without interpreting HTML in between and using monospaced font. HTML2 specification recommended that it should be rendered wide enough to allow 80 characters per line.
4. Which attribute specify a column name from the data source object?
Explanation: datafld attribute is supported by Internet Explorer 4 and its higher versions. It specifies column name from the data source object that supplies bound data. This attribute may be used to specify various <param> elements passed to Java applet.
5. Which attribute is used for data binding?
Explanation: It is like datafld attribute. It is used for data binding under Internet Explorer 4. It indicates id of data source object that supplies data that is bound to <param> elements associated with an applet.
6. Which attribute assigns a name to the applet?
Explanation: This attribute assigns a name to the applet so that it can be identified by the other resources especially for some particular scripts. Additional vertical space is specified by vspace attribute in pixels.
7. Which value is there for autoplaying the YouTube video?
Explanation: We can play our video automatically when the user visits the page by adding a simple parameter to a YouTube URL. When the value is set to be 0 the value will not play automatically when the player loads. It is the default value. When the value is set to be 1 the video will play automatically when the player loads.
8. Which element is used for YouTube videos?
Explanation: We can host our videos through YouTube and can easily embed them into our website. <iframe> tag will be used for YouTube videos.
E.g. <iframe width=”670” height=”612” src= “https://sanfoundry.com”> </iframe>
9. HTML object tag to embed multimedia will not embed in ___________
c) Java applets
Explanation: We can use HTML object tag to embed multimedia like video, audio, Java applets, PDF, Flash, ActiveX in the web pages. For embedding video in HTML without iframe tag we can use object tag.
10. video ID can be substituted by _____________
Explanation: We can modify the embed code for an individual video by substituting video ID after “embed/” with “videoseries?list=”, then paste playlist ID after “=”, paste the code into the blog or Website HTML.
Sanfoundry Global Education & Learning Series – HTML.
To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.