This tutorial provides links to certain helpful documents, and on the final exam you will be free to refer to outside sources such as the Mozilla Developer Network, Khan Academy, and your own previous work if you want. I will not answer specific questions about the content, but I will tell you if you've made a mistake when you finish each section if you raise your hand and ask me to check.
- Go to https://github.com/chapelfield/final-exam-html-css-practice-2 and fork the repository.
- Open your fork of the repository in a new tab.
Unless told otherwise, all instructions for this section apply to index.html
.
- Open and edit
index.html
. - Change the page title and the first page heading to "Final Exam HTML/CSS Practice 2".
- Underneath the first heading there should be three paragraphs. However, right now only one is formatted correctly. Add paragraph tags where necessary to make the three paragraphs appear correctly. Remember that each paragraph should be on its own line with no empty lines between.
- There is a second heading on line 14. We want it to be smaller. Change it to
<h2>
. Don't forget to change both the opening and closing tags. - Go to http://lipsum.com/ and scroll down until you see the heading "Where can I get some?" Change the number of paragraphs to 4 instead of 5 and click "Generate Lorem Ipsum".
- Copy and paste the resulting paragraphs of Latin text into your HTML, underneath "Do You Even Latin?". Make sure to surround each paragraph element with the correct tags. Remember that each paragraph should be on its own line with no empty lines between.
- Add an image element after the last paragraph and add the link to this GIF in the appropriate place inside the
<img>
tag. - Commit your changes.
Unless told otherwise, all instructions for this section apply to style.css
.
- Open and edit
style.css
. - Change the background color to
gainsboro
. - Change the font family to
serif
. - Change the font size and line height to
1.5em
. - Create a new block (or ruleset for the
img
selector below thebody
selector. Remember to include all the curly braces and punctuation needed. - Inside the
img
ruleset, set the maximum width to80%
and the margins toauto
. - Inside the
img
ruleset, create thedisplay
property and set its value asblock
. - Commit your changes. Your finished website should look like this one.
- Send me an email with the subject line "Final Exam HTML/CSS Practice 2" and paste the links to your
final-exam-html-css-practice-2
repository and the live view of the website.