HTML Quiz
Instructions
- Create a new directory in your github repo named
html-quiz. - Inside this directory create a file named
index.html. Make sure this is a valid HTML5 document. - Complete the quiz by adding your answers to the index.html file.
- At the end of the quiz upload your new file to GitHub. Refer to the Resources page if you need help with the commands to navigate to your directory in the terminal and push to github.
You have 30 minutes to complete the quiz. You may use the internet to help answer the questions if necessary, but don’t share or copy code between students.
Feel free to pick and choose which questions you answer first. Try to answer as many as possible, and move on if you get stuck on one problem.
Questions
-
Using each HTML
headingtag, list your favorite foods ranked by importance. -
Create a
linkto your favorite website, and add aparagraphdescribing why you like it so much. -
Insert an image of your choosing to the page. Make sure the image includes ALT text that describes the image.
- Nest the following series of HTML tags inside each other, where each
>represents a new level. Make sure to maintain proper indentation.main > section > div > p > span
-
Create an
ordered listof the top 5 countries you’d like to visit. Within each country, create anotherordered listof the top cities you’d like to visit in that country. Maintain proper indentation and make sure you nest your ordered lists properly. -
Use
pretags to create a simple concrete poetry version of a Haiku or other poem you write. The poem should represent how you feel at this moment. * Hint:pretags respect whitespace, you can add add lots of spaces and line breaks and they will show up like that when you view the web page. -
Write an HTML comment that is hidden from the browser, but displays in the code.
-
Create a relative
linkthat links to your repository’s home page. -
Create an
unordered listof at least 6 musical artists you like to listen to. Add aclassto each list item that matches the genre of music of that artist. -
Describe the difference between block, inline-block and inline elements.
-
Use CSS to style the musical genre classes you added in question 9. Give each genre a color and personality using CSS.
- If you have additional time, use CSS to style this quiz.