Our experts have gathered these HTML 5 MCQs through research, and we hope that you will be able to see how much knowledge base you have for the subject of HTML 5 by answering these multiple-choice questions.
Get started now by scrolling down!
A. To define a push button
B. To define italic text
C. To define text with strong importance
D. To define a (single) break
E. To define bold text
A. text/cache-manifest
B. text/plain
C. application/cache-manifest
D. application/xml
A.
<img draggable="allow" />
B. <img draggable="true" />
C. <img drag="allow" />
D.
<img drag="true" />
A. JavaScript script running in the background of the page
B. Hundreds or thousands of these can be allocated in clusters to distribute work amongst common tasks on a web platform
C. No correct answer
D. JavaScript script embedded in the page, triggered by the user
A. Offline browsing: users can navigate a site even when they are offline.
B. Security: data stored within the cache is protected from external access.
C. Reduced server load: the browser only downloads resources that have changed from the server.
D. Speed: cached resources are local, and therefore faster.
A. <progress>
B. <figure>
C. <details>
D. <section>
E. <summary>
A. getCanvas();
B. setCanvas() ;
C. setContext();
D. getContext();
A. whitespace
B. unclosed div tags
C. bugs
D. unloaded JavaScript
A. True
B. False
A. window.frameElement
B. window.parent
C. window.top
D. None
A. all of these
B. a right nav tag
C. an aside tag
D. CSS overflow
A. Yes, it seems correct.
B. No, the "controls" attribute can not be set to "controls".
C. No, the "controls" attribute does not exists.
D. No, you can not use 3 <source> in a single <video> tag.
E. No, you can't directly add the text "Your browser does not support the video tag." in a <video> tag.
A. fillRect(x,y,z)
B. fillRect(x,y,width,height)
C. fillRect(width,height)
D. fillRect(x,y)
A. none of these.
B. Specifies a javascript snippet to be executed when the form is submitted.
C. tells the browser what to do if an input field is invalid.
D. specifies the URL of the service that will handle the submitted data.
A. <figure>
B. <aside>
C. <nav>
D. <figcaption>
E. <img>
A. <object>
B. <abr>
C. <em>
D. <abbr>
E. <address>
A. False, client-side form validation is only possible with the use of JavaScript.
B. False, form validation is only possible on the server.
C. True, but this should not replace server-side validation.
A. form overrides
B. autofocus
C. list
D. autocomplete
A. detect email addresses and phone numbers
B. completely replace server side form validation
C. validate forms
A. pattern.
B. box type.
C. element.
D. attribute.
A. <article>
B. <section>
C. <hgroup>
D. <nav>
A. <footer>
B. <nav>
C. <header>
D. <narrow>
E. <article>
A. limit_value
B. value="medium"
C. medium
D. maxlength
A. Size Vector Graphics
B. Scalable Vector Graphics
C. Size Visable Graphics
D. Size Vested Graphic
A. any number
B. 2
C. 3
D. 20
A. To define external interactive content
B. To define a body element
C. To define emphasized text
D. To define a table caption
E. To define bold text
A. Google Chrome
B. Opera
C. Internet Explorer
D. Firefox
E. Safari
A. the HTML5 replacement for the deprecated <a> element.
B. the base URL specified with the location attribute.
C. The <nav> element is not part of the HTML5 specification.
D. a section of a page that links to other pages or to parts within the page.
A. All of these
B. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
C. <!DOCTYPE html>
D. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
A. If an HTML5 document finds no stylesheet, it becomes invalid.
B. HTML5 describes the content of a page while CSS defines style rules.
C. It is best to style a webpage using the new HTML5 style properties.
A. Defines keyboard input
B. Defines broader container area
C. Defines Important Text
D. Defines a sample output from a computer program
E. Defines a Definition Term
A. recall
B. reset
C. reprocess
D. reboot
A. autoplay
B. loop
C. autorun
D. fastload
E. preload
A. email fields.
B. url fields.
C. time-date fields.
D. required fields.
A. <input placeholder=”Placeholder text” />
B. <input>Placeholder text</input>
C. <input value=”Placeholder text” />
D. <input pre=”Placeholder text” />
A. Play button
B. It includes all of the option.
C. Pause button
D. Seeking
E. Volume
A. VB script
B. None
C. JavaScript
D. PostScript
A. <input type="text" name="email" />
B. <input type="email" name="user_email" />
C. <input type="Email" id="email" />
D. <input type="text" id="email" />
A. <rt>
B. <article>
C. <section>
D. <mark>
E. <details>
A. Netscape
B. XML
C. W3C
D. XHTML 2.0
A. prevent change in page layout when the image finishes loading.
B. all of these.
C. stretch an image.
A. False
B. True
A. If the entire URL changes.
B. If the hash portion of the current URL changes.
A. To preformat pictures or text using Cascading Style Sheets
B. To insert JavaScript content
C. To draw pictures or text using Scalable Vector Graphics
D. <svg> tags are not supported by HTML5
E. To structure web pages
A. <input type="text" min="1" max="10" />
B. <input type="number" name="points" min="1" max="10" />
C. <input type="text/number" name="points" id="text" min="1" max="10" />
D. <input type="text" name="points" />
A. Type
B. Enctype
C. Bold
D. Action
E. All of these
A. at the very end of the file.
B. right after the opening <head> tag.
C. at the very beginning of the file.
D. anywhere on the page
A. <section>
B. <header>
C. <figure>
D. <details>
A. <aside>
B. <div>
C. <footer>
D. <article>
A. <figure>
B. <figcaption>
C. <command>
D. <section>
A. sound.begin()
B. sound.resume();
C. sound.play();
D. sound.start();
A. HTML commands
B. Standards
C. Web storage
D. Namespaces
A. replaces JavaScript
B. works in conjunction with JavaScript
C. does not work if the page is written in php
D. only works with cold fusion
A. <!DOCTYPE = “HTML5”>
B. <!DOCTYPE HTML5>
C. <!DOCTYPE html>
D. <HTML5>
A. <input name =’be evil’ />
B. <input name=be evil />
C. <input name = “be-evil" />
A. onundo
B. onredo
C. onerror
D. onunload
A. Yes, except for Firefox
B. Yes, except for Safari
C. Yes
D. No
E. Yes, except for Google Chrome
A. disappear
B. light up
C. become hidden
D. become trackable
A. cookies and locationObjects.
B. cookies and sessionVariables.
C. localStorage and sessionStorage.
A. All of these
B. It's a drawable region defined in HTML code with height and width attributes.
C. It has several methods for drawing paths, boxes, circles, characters, and adding images.
D. It's used to draw graphics, on the fly, via scripting
E. It's a container for graphics
A. <mark>
B. <aside>
C. <header>
D. <nav>
A. <input type="text/url" id="url" />
B. <input type="text" id="user_url"/>
C. <input type="url" name="user_url" />
D. <input type="text" name="user_url" />
A. height
B. src
C. alt
D. align
E. width
A. validate
B. required
C. formvalidate
D. placeholder
A. It is used to define computer code text.
B. It is used to define sample computer code.
C. It is used to define a definition term.
D. It is used to define important text.
A. input="checked"
B. check="yes"
C. checked="checked"
D. this->check
A. Defines additional details that the user can view or hide
B. Represents the progress of a task
C. Defines a section in a document
D. Defines additional data from other sites
E. Defines a command button that a user can invoke
A. True
B. False
A. Only for Internet Explorer
B. No
C. Yes
D. No, but it will
E. Only XML type
A. uStreams
B. webisodes
C. MIME types
A. Google Chrome 6
B. Opera 10.6
C. Firefox 4.0
D. Internet Explorer 9
A. secondary content
B. right side content
C. left side content
D. main content
A. <hgroup>
B. <aside>
C. <nav>
D. <section>
A. automatically gets updates from a server
B. define a possible line-break
C. use the location of a user's position
A. HTML elements
B. Event attributes
C. Style attributes
A. <aside>
B. <summary>
C. <version>
D. <command>
A. <input type="reset"/>
B. <input type="clear"/>
C. <submit for="clear"/>
D. <submit>reset</submit>
E. <reset/>
A. doesn't exist.
B. holds the input field in place.
C. sets default gray helper text for the field.
D. creates even spacing between itself and other input fields.
A. True
B. False
A. text
B. command
C. checkbox
D. radio
A. <nav>
B. <menu>
C. <aside>
D. <article>
A. preload
B. It is default of <video> element.
C. autoplay
D. poster
E. controls
A. SVG
B. 2D API
C. Bespin Application
D. Canvas
A. True
B. False
A. To allow developers to incorporate local storage of images
B. To give users the ability to display block level images
C. To offer a semantically correct markup for displaying image captions
D. To deprecate the <img> and <span> tags
A. rtl
B. auto
C. dir
D. ltr
A. False
B. True
A. <button type='submit'>
B. <submit>
C. <field for="data-submit"/>
D. <form action="submit">
E. <run>
A. False
B. True
A. valid HTML5 mark-up
B. used only for XML.
C. have a limit of 256 characters.
D. no longer valid in HTML5.
A. Width attribute
B. Size attribute
C. Size of media source
D. Height attribute
E. Poster attribute
A. selected="true"
B. checked="true"
C. checked="checked"
D. selected="selected"
A. <embed>
B. <source>
C. <video>
D. <audio>
E. <track>
A. headers but not footers
B. any valid mark-up or content
C. divs only
D. headers and footers only
A. Still display it as an email input
B. Display it as a text input
C. Not display it at all
D. Display it as a textarea
A. range=”1,10”
B. min=”1” max=”10”
C. value=”1” maxvalue=”10”
D. minimum=”1” maximum=”10”
A. <form>
B. <legend>
C. <figcaption>
D. <object>
E. <font>
A. <strong>
B. <object>
C. <audio>
D. <comment>
A. Enables a web application to copy the server logic to a local server, so it can be run without an internet connection.
B. None of these
C. Enables a web application to cache itself and make it readable without an internet connection.
A. True
B. False