HTML5 Test Upwork

Which of the following element is NOT a block element?
      <p>
      <td>
      <div>
      <address>
What does the icon attribute of the HTML5 command tag define?
<command icon="?">Click Me!</command>
      It is used to define the URL of an image to display as the command.
      It is used to define the name of the radiogroup this command belongs to.
      It is used to define if the command is checked or not.
      It is used to define if the command is available or not.
What is the purpose of the <q> element in HTML5?
       It is used to define the start of a term in a definition list.
       It is used to define attribute values for one or more columns in a table.
       It is used to define the start of a short quotation.  
       It is used to define what to show browsers that do not support the ruby element.
Which of the following are suitable uses for the nav element?
Note: There may be more than one right answer.
       For groups of controls (a, input, button)
       For groups of internal links (a elements)
       Changing the content of an Ajax page
       Defining context menus and toolbars
In HTML5, which of the following is not a valid value for the type attribute when used with the <command> tag shown below?
<command type="?">Click Me!</command>
       button
       command
       checkbox
       radio
 Which event is fired when an element loses its focus in an HTML5 document?
       onfocus
       onload
       onblur
       onselect
Which of the following are true regarding the <keygen> tag in HTML5?
       The tag specifies a key-pair generator field used for forms.
       The tag generates a public/private key pair and then creates a certificate request. This certificate request will be sent to a Certificate Authority (CA), which then creates a certificate and sends it back to the browser.
       The tag generates random passwords when the user requests for a password reset.
       The tag is deprecated in HTML5.
Which of the following is true while coding HTML5 in visual studio?
       Visual studio has built in tag support and validation for HTML5
       Visual Web Developer tools can be used to write HTML5 code and Validation
       Visual studio provides a plugin for HTML5 Intellisense
       HTML tags are not supported in visual studio.
Which of the following are valid values for the contenteditable attribute of the <figure> element in HTML 5.0?
       true
       false
       0
       1
Which media event is triggered when there is an error in fetching media data in HTML5?
       onstalled
       onwaiting
       onsuspend
       oninvalid
Which of the following events is not supported in HTML5?
        oninput
        oninvalid
        ondrop
        onreset
The following link is placed on an HTML webpage:
<a href="http://msdn.com/" target="_blank"> MSDN </a>
What can be inferred from it?
       It will open the site msdn.com in the same window.
       It will open the site msdn.com in a new window.
       It will open the site msdn.com in a frame below.
       It will not be clickable as it is not formed correctly.
Which of the following is not a valid syntax for the <link> element in HTML5?
        <link rel="icon" href="/abc.jpg" sizes="16x16">
        <link rev="stylesheet" href="/abc.css" type="text/css" target="_parent">
        <link rel="alternate" type="application/pdf" hreflang="fr" href="/manual-fr">
You want to create a link for your website allowing users to email the webmaster. How will you implement this if the webmaster's email address is webmaster#xcompany.com?
       <a href="mailto:webmaster#xcompany.com">webmaster</a>
       <a href="/webmaster#xcompany.com">webmaster</a>
       <a http="mail:webmaster#xcompany.com">webmaster</a>
       <mail http="send:webmaster#xcompany.com">webmaster</mail>
Which of the following is not an attribute of the <meta> element in HTML5?
        charset
        content
        http-equiv
        scheme
Which of the following attributes gets hidden when the user clicks on the element that it modifies? (Eg. hint text inside the fields of web forms)
       autocomplete
       autofocus
       placeholder
       formnovalidate
What is the role of the <dfn> element in HTML5?
       It is used to define important text.
       It is used to define computer code text.
       It is used to define sample computer code.
       It is used to define a definition term.
What is the proper syntax for a line break tag as W3C specs defines?
       <br>
       <br/>
       <br />
       All of these.
Which media event will be fired when a media resource element suddenly becomes empty?
       onerror
       onended
       onloadeddata
       onemptied
Which of the following are valid ways to associate custom data with an HTML5 element?
Note: There may be more than one right answer.

       <tr class="foo" data-id-type="4">
       <tr class="foo" id-type="4">
       <tr class="foo" data-id_type="4">
       All of the above.
Choose the valid methods for navigating to a fragment identifier.
Note: There may be more than one right answer.
       Parse the URL, and let fragid be the <fragment> component of the URL.
       If fragid is the empty string, then the indicated part of the document is the top of the document.
       If there is an element in the DOM that has an ID exactly equal to fragid, then the first such element in tree order is the indicated part of the document; stop the algorithm here.
       If there is an a element in the DOM that has a name attribute whose value is smilar to fragid, then the first such element in tree order is the indicated part of the document; stop the algorithm here.
If the <html>, <head> and <body> tags were removed from a page, what would be the effect?
       It will affect DOM parsing.
       It will cause warnings/errors under W3C validators.
       The view will not render properly.
       All of the above.
Which of the following <link> attributes are not supported in HTML5?
Note: There may be more than one right answer.
       sizes
       rev
       rel
       charset
Which of the following are possible ways to make the browser automatically adds new images and discards deleted images with server-side events in HTML5?
Note: There may be more than one right answer.
       Long Polling Ajax Requests
       Server-sent Events
       WebSockets
       JavaScript objects on the client via JSON.parse().
Which of the following <section> elements have the correct attribute assignment as per HTML5?
Note: There may be more than one right answer.
       <section id="example">...</section id="example">  
        <section id="example">...</section id="example2">  
       <section id="EXAMPLE">...</section>
       <section id="Example">...</section>
       <section id="example">...</section>
Which of the following methods are valid for navigating to a fragment identifier?
http://demo.com/#foo
Note: There may be more than one right answer.
       <a name="foo">bar</a>
       <a id="foo">bar</a>
       <div id="foo">bar</div>
       <div class="foo">bar</div>
Which of the following is an invalid value for the type attribute of a command tag?
       checkbox
       radio
       command
       text

HTML5 Test Answers part 2 HTML5 Test Answers part 3

HTML5 Test Upwork 2019{jcomments off}