HTML Assessment

chaitu_informative_blogs_html_assessment_quiz

Instructions:

Topics:

Beyond HTML; HTML Fundamentals; Images, Sound, and Video; Tables and Mathematics; Web for All.
  • 15 multiple-choice questions
  • 1.5 minutes per question
  • Score in the top 30% to earn a badge

Before you start

  • you must complete this assessment in one session -- make sure your internet is reliable.
  • you can retake this assessment once if you don't earn a badge.
  • we won't show your results to anyone without your permission.

Language: English

1. For the HTML code below, when will "Sample Text" display to the browser?

    <noscript>Sample Text</noscript>

A. when JavaScript is not supported by the browser or if JavaScript is disabled in the browser.

B. when JavaScript is disabled in the web browser.

C. when there is no JavaScript used on this webpage.

D. when JavaScript is not supported by the web browser.

A.

2. Review the text in the red box. What is the best way to code this in HTML?



A. unordered list inside of an <footer> element

B. ordered list inside of an <footer> element

C. ordered list inside of an <nav> element

D. unordered list inside of an <nav> element

D.

3. What does this code do?

<audio autoplay loop src="sound.mp3" type="audio/mpeg"></audio>

A. The browser plays the sound once automatically in the background. The user has no control over the sound.

B. The browser plays the sound automatically and continuously in the background. The user has no control over the sound.

C. When the Play button is pressed, the browser plays the sound over and over again until the user stops it.

D. The browser plays the sound automatically and continuously in the background. The user may stop the sound at any time.

B.

4. What is the correct way to code a comment in HTML?

A. //this is a comment

B. <!-- this is a comment -->

C. <! this is a comment ->

D. /* this is a comment */

B.

5. What is the correct way to include a stylesheet named style.css in the <head> of your document?

A. <link style="style.css">

B. <style link="style.css">

C. <style src="style.css"></style>

D. <link rel="stylesheet" href="style.css">

C.

6. Which description list is coded correctly?




B.

7. What is the difference between the readonly and disabled attributes for the <textarea> element?

A. disabled is an invalid attribute for <textarea>, while readonly is a valid attribute.

B. readonly is an invalid attribute for <textarea>, while disabled is a valid attribute.

C. disabled allows clicking in the <textarea> element. readonly prevents all interaction with the control.

D. readonly allows clicking in the <textarea> element. disabled prevents all interaction with the control.

D.

8. Which statement is false?

A. Block elements can be nested inside block elements.

B. Inline elements can be nested inside block elements.

C. Block elements can be nested inside inline elements.

D. Inline elements can be nested inside inline elements.

C.

9. In the code below, what is the purpose of the lang attribute in this code?

<p lang="en-GB">Welcome to our wonderful website.</p>

A. It establishes the language for the paragraph—in this case, English.

B. It establishes the language for the website—in this case, English.

C. It establishes the language and dialect for the website—in this case, UK English.

D. It establishes the language and dialect for the paragraph—in this case, UK English.

D.

10. What is the difference between <input type="submit" value="click me">and<button type="submit">Click me</button>?

A. The<input type="button">has been deprecated in HTML5.You should use the<button>tag instead.

B. There is no difference.Both will render a button that submit a form.

C. Both will submit a form.However,the<input>can have content other than text,like an image or nested HTML elements,while the<button>cannot.

D. Both will submit a form.However,the<button>can havecontent other than text,like an image or nested HTML elements,while the<input>cannot.

A.

11. How do you confirm that a document is written in HTML5?

A. The server wraps the webpage in an HTML5 wrapper.

B. It is encoded in an<html>tag.

C. Use the<!DOCTYPE html>declaration that starts the document.

D. The browser receives encoding from the server to display the document with HTML5.

C.

12. In this code, what is target?

<a href="http://www.linkedin.com" target="_blank">Visit site</a>

A. an element

B. a tag

C. content

D. an attribute

D.

13. What is the most semantically accurate way to mark up this sentence? (Note:"TLAS" stands for "three-letter acronyms.") we are fond of our TLAS in web design.

A. <p>we are fond of our <acronym title='three-letter acronym'>TLAs</acronym> in web design.</p>

B. <p>we are fond of our <abbr title='three-letter acronyms'>TLAs</abbr> in web design.</p>

C. <p>We are fond of our TLAs in web design.</p>

D. <p>We are fond of our <span title='three-letter acronyms'>TLAs</span> in web design.</p>

B.

14. What does this code do when the browser cannot play sound or the source files are missing?

<audio controls src="sound.mp3" type="audio/mpeg">When or where does this text display?</audio>

A. The text never displays.

B. The text displays over the audio controls, unless CSS is used to position it elsewhere.

C. The text displays when the browser cannot play the sound.

D. The text displays under the audio controls.

C.

15. What is the purpose of <caption>?

A. <caption> provides captions to<table>.

B. <caption> provides captions for <audio>,<video>,<img>,and<table>.

C. <caption> provides captions for <audio>,<video>,and<table>.

D. <caption> provides captions for <img>,<audio>,and<video>.

A.