Coding Class - Day 3 Pop Quiz
Coding Class - Day 3 Pop Quiz
Coding Class - Day 3 Pop Quiz
1. Why should you always include the <!DOCTYPE html> element in every HTML document?
2. What is the <html> element also known as? (Hint: _____ element).
7. What is whitespace?
8. Below are several pieces of text surrounded by the paragraph (<p>) tag. For each code, write down what it would
look like in the browser. Use the space to the right of each code. As long as you make your answer clear, you’re good.
<h1>Buttface’s Page</h1>
11. The <main> element helps search engines and other developers find the _________________________ of your page.
13. What does the alt="" attribute do? Circle the letter of the correct answer.
a. Displays the value if the image fails to load.
b. Displays the value when hovering over the image with the mouse.
c. Never displays the value, but screen reading devices will “speak” it.
14. Fill in the href attribute so that the link jumps down to the image element when clicked on.
<h1>My Page</h1>
15. Why would we ever want to create a “dead link”, and how do we create one?
16. Write an <a> tag with an attribute that, when hovered over, shows this text: