Add a paragraph of text.
Acceptance criteria
- 1.Add a paragraph of text.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <p> Tag chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “The tag defines a paragraph of text in HTML. It is a block-level element that automatically adds some spacing above and below the text, making content readable and organized.” .
1.Write a paragraphexercise · easy · 10 min
Add a paragraph of text.
Passes when: Add a paragraph of text.
2.Two paragraphsexercise · easy · 10 min · practice plan
Add two separate paragraphs.
Passes when: Add two separate paragraphs.
3.Heading and paragraphexercise · easy · 10 min · practice plan
Add a heading followed by a paragraph.
Passes when: Add a heading followed by a paragraph.
4.Paragraph inside a sectionexercise · easy · 10 min · practice plan
Put a paragraph inside a section element.
Passes when: Put a paragraph inside a section element.
5.Three paragraphs in orderexercise · medium · 10 min · practice plan
Write an intro, a middle and a closing paragraph.
Passes when: Write an intro, a middle and a closing paragraph.
6.Fix the div used for textbug fix · easy · 8 min
Body text belongs in a paragraph.
Passes when: Body text belongs in a paragraph.
7.Fix the two ideas crammed togetherbug fix · easy · 8 min · practice plan
Two ideas should be two paragraphs.
Passes when: Two ideas should be two paragraphs.
8.Fix the line break used as a paragraphbug fix · easy · 8 min · practice plan
A break does not start a new paragraph.
Passes when: A break does not start a new paragraph.
9.Fix the paragraph outside the sectionbug fix · easy · 8 min · practice plan
The text belongs inside the section.
Passes when: The text belongs inside the section.
10.Fix the heading used as body textbug fix · easy · 8 min · practice plan
A description is a paragraph, not a heading.
Passes when: A description is a paragraph, not a heading.
Between them these tasks cover Paragraphs, Block flow and Readable text.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.