Add a heading and a paragraph.
Acceptance criteria
- 1.Add a heading and a paragraph.
HTML Tutorial · HTML Basics
These 10 tasks go with the HTML Editors 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: “HTML code can be written using any simple text editor — you don’t need fancy software to start. However, as you progress, using an HTML editor can make your work faster, more accurate, and easier to manage.” .
1.Write your first page bodyexercise · easy · 10 min
Add a heading and a paragraph.
Passes when: Add a heading and a paragraph.
2.Nest elements correctlyexercise · easy · 10 min · practice plan
Put a paragraph inside a section.
Passes when: Put a paragraph inside a section.
3.Indent a nested listexercise · easy · 10 min · practice plan
Add a ul with two li items.
Passes when: Add a ul with two li items.
4.Close every elementexercise · easy · 10 min · practice plan
Add two properly closed paragraphs.
Passes when: Add two properly closed paragraphs.
5.Build a small page sectionexercise · medium · 10 min · practice plan
Add a section with a heading and two paragraphs.
Passes when: Add a section with a heading and two paragraphs.
6.Fix the invented element namebug fix · easy · 8 min
There is no <paragraph> element in HTML.
Passes when: There is no <paragraph> element in HTML.
7.Fix the wrong containerbug fix · easy · 8 min · practice plan
A generic div is used where a section is required.
Passes when: A generic div is used where a section is required.
8.Fix the wrongly nested listbug fix · easy · 8 min · practice plan
List items must sit inside a list element.
Passes when: List items must sit inside a list element.
9.Fix the misspelled containerbug fix · easy · 8 min · practice plan
The section element name is misspelled, so it is not a section at all.
Passes when: The section element name is misspelled, so it is not a section at all.
10.Fix the stray angle bracketbug fix · easy · 8 min · practice plan
A malformed tag breaks the heading.
Passes when: A malformed tag breaks the heading.
Between them these tasks cover Writing valid markup and Indentation and nesting.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.