Section 2 Answer Key

  1. What does HTML stand for?
    1. Hyperlinks and Text Markup Language [Incorrect]
    2. Hyper Text Markup Language [Correct!]
    3. Home Tool Markup Language [Incorrect]
    4. Hyper Text Manipulation Language [Incorrect]
  2. Choose the correct HTML tag for the largest heading.
    1. <heading> [This is not a valid tag]
    2. <h1> [Correct!]
    3. <header> [This is a document section]
    4. <h6> [This is the smallest heading]
  3. Which of these is a properly formatted link?
    1. <a link=“www.google.com”>Link</a> [Incorrect]
    2. <a href=“www.google.com”/> [Incorrect]
    3. <link location=“www.google.com”>Link</a> [Incorrect]
    4. <a href=“www.google.com”>Link</a> [Correct!]
  4. How can you open a link in a new tab/browser window?
    1. <a href=“url” target=“_blank”> [Correct!]
    2. <a href=“url” target=“new”> [Incorrect]
    3. <a href=“url” new> [Incorrect]
  5. Which doctype is correct for HTML5?
    1. <!DOCTYPE HTML5> [Incorrect]
    2. <!DOCTYPE html> [Correct!]
    3. <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 5.0//EN” “http://www.w3.org/TR/html5/strict.dtd”> [Incorrect]
  6. What is the correct HTML for making a drop-down list?
    1. <select> [Correct!]
    2. <input type=“dropdown”> [Incorrect]
    3. <input type=“list”> [Incorrect]
    4. <list> [Incorrect]
  7. Which of the following is correct?
    1. HTML is used for exchanging data, XML is not. [Incorrect]
    2. XML is used for exchanging data, HTML is not. [Correct!]
    3. HTML can have user defined tags, XML cannot. [Incorrect]
    4. Both b and c above. [Incorrect]
  8. What is the correct HTML5 element for playing video files?
    1. <movie> [Incorrect]
    2. <video> [Correct!]
    3. <source> [Incorrect]
    4. None of the above [Incorrect]
  9. What is the correct HTML for inserting an image?
    1. <img src=“image.gif” alt=“MyImage”> [Correct!]
    2. <image src=“image.gif” alt=“MyImage”> [Incorrect]
    3. <img href=“image.gif” alt=“MyImage”> [Incorrect]
    4. <img alt=“MyImage”>image.gif</img> [Incorrect]
  10. The <canvas> element in HTML5 is used to:
    1. Display database records [This is possible, but not the main purpose]
    2. Manipulate data in MySQL [Incorrect]
    3. Create draggable elements [This is possible, but not the main purpose]
    4. Draw graphics [Correct!]
  11. In HTML5, which attribute is used to specify that an input field must be filled out?
    1. Formvalidate [Incorrect]
    2. Validate [Incorrect]
    3. placeholder [Incorrect]
    4. required [Correct!]
  12. Which HTML5 element is used to display a measurement within a fixed range?
    1. <gauge> [Incorrect]
    2. <range> [Correct!]
    3. <measure> [Incorrect]
    4. <meter> [Incorrect]
  13. What does CSS stand for?
    1. Cross-site scripting [Incorrect]
    2. Cascading Style Sheets [Correct!]
    3. Creative style sheets [Incorrect]
    4. Compiled site styles [Incorrect]
  14. Given the following, what value does the left margin have?: margin: 10px 5px 20px 15px;
    1. 10px [This is the top]
    2. 5px [This is the right side]
    3. 20px [This is the bottom]
    4. 15px [Correct!]
  15. Which style rule overrides the other?
    1. Class [Incorrect]
    2. Id [Correct!]
  16. What property creates space between HTML elements?
    1. Margin [Correct!]
    2. Padding [This is inside an element]
    3. Spacing [This is between text]
    4. Float [Incorrect]
  17. What property creates space within an element?
    1. Margin [This is between elements]
    2. Padding [Correct!]
    3. Spacing [This is between text]
    4. Float [Incorrect]
  18. Which set of tags are used to define CSS within the page?
    1. <style type=“css”></style> [Correct!]
    2. <class type=“text/css”></class> [Incorrect]
    3. <inline css></inline> [Incorrect]
    4. None of the above [Incorrect]
  19. Which of these is the correct way to define a hover state for an anchor tag?
    1. :onHover [Correct!]
    2. :mouseOver [Incorrect]
    3. :hover [Incorrect]
    4. None of These [Incorrect]
  20. Which property of a position rule will force content to a position regardless of other elements?
    1. Fixed [Incorrect]
    2. Absolute [Correct!]
    3. Relative [Incorrect]
    4. Strict [Incorrect]
  21. Responsive styling allows us to support many devices with one style sheet.
    1. True [Correct!]
    2. False [Incorrect]
  22. Which of the following is the best fit for defining styles on small mobile devices?
    1. @media only screen and (max-width: 479p [Correct!]
    2. @media only screen and (max-width: 769p [This is best for tablets]
    3. @media only screen and (max-width: 120p [This is very small!]

License

Icon for the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

The Missing Link Copyright © 2014 by Michael Mendez is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, except where otherwise noted.