Intro to CSS3 and HTML5

  1. What is the purpose of the alt= attribute used in an img tag?

    a. To show some words on the screen when the user points to the picture in the browser
    b. To provide a description of the picture, which is read aloud by screen readers for the blind
    c. To show a caption under the picture on the page
    d. To indicate the height and width of the picture
    To provide a description of the picture, which is read aloud by screen readers for the blind
  2. Suppose you have a folder named pix in the root folder of your site. Inside that folder, you have an image file named sunset.png. In a page in the root folder, you'd like to show that image. What would be the correct src= attribute in the img tag to display that picture?

    a. src="sunset.png"
    b. src="pix/sunset.png"
    c. src="pix\Sunset.png"
    d. src="sunset.png/pix"
    src="pix/sunset.png"
  3. Which of the following best describes the concept of a relative reference?

    a. Code that uses an FQDN (Fully Qualified Domain Name) to refer to a file somewhere on the Internet, outside your website
    b. Code that refers to the location of a file relative to the page or style sheet that contains that code
    c. Code that defines a special character like the copyright symbol using an abbreviation like © rather than a number like ©
    d. Code that was written by a parent, sibling, child, cousin, or somebody else related to you
    Code that refers to the location of a file relative to the page or style sheet that contains that code
  4. We say graphic images act like inline elements because they flow with the text by default. If you want text to flow next to an image and wrap around the image instead, which CSS property would you apply to the image?

    a. The width property
    b. The border property
    c. The float property
    d. The height property
    The float property
  5. Which of the following best describes using height="100" in an img tag to size an image?

    a. Using a CSS inline style to size the image
    b. Making a bad typographical error in your code
    c. Using an HTML attribute to size the image
    d. Using a CSS style rule to size the image
    Using an HTML attribute to size the image
Author
jdavis123
ID
354345
Card Set
Intro to CSS3 and HTML5
Description
Lesson 6 - Spice It Up With Pictures
Updated