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>