This is the homework for the “Paragraphs and Headings” of the HTML class. It includes a short quiz (answers below) and a project you can do to practice what you've learned in this lesson.
Paragraphs and Headings Quiz
- Is the paragraph (<p>) tag valid within the <html> tag?
- How many <h1> tags can appear on a page? And how many are recommended?
- Why would you use a trailing slash in the <br> tag?
- Is this correctly written HTML: <p>This is the <strong><em>most</strong> important</em> part of the text. If it is incorrect, how could you correct it?
Paragraphs and Headings Project
Write a new HTML document that has at least two headlines and three paragraphs of text. Indicate the items of importance in the document by highlighting the text with bold or italics. Be sure to next your tags correctly. If you are sharing your work on the forum, upload your page to your web hosting provider and share your URL on the forum. If you have questions about this lesson, you should post your URL or attach your HTML so that we can help figure out what's wrong.
Answers to the Paragraphs and Headings Quiz
- This is something of a trick question. Based on the documents that you read for this lesson, no, the P tag cannot be a direct descendant of the HTML tag. The HTML tag is supposed to only have two tags inside it: the HEAD and the BODY tags. But because the BODY tag can be ommitted, documents will still validate as though it were there.
- You can include as many H1 tags as you like on a page. However, best practices recommend that you only use one H1 tag per page.
- When you write the BR tag as <br/> it implies that you are writing XHTML.
- No, it is not correct. The STRONG and EM tags are not nested correctly.
There are at least two ways to fix it:- <p>This is the <em><strong>most</strong> important</em> part of the text.
- <p>This is the <strong><em>most</em></strong><em> important</em> part of the text.

