diff --git a/curriculum/challenges/english/25-front-end-development/lab-debug-camperbots-profile-page/6823f9df49cc206af5471a30.md b/curriculum/challenges/english/25-front-end-development/lab-debug-camperbots-profile-page/6823f9df49cc206af5471a30.md index c402e603966..fdbb18aec13 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-debug-camperbots-profile-page/6823f9df49cc206af5471a30.md +++ b/curriculum/challenges/english/25-front-end-development/lab-debug-camperbots-profile-page/6823f9df49cc206af5471a30.md @@ -8,83 +8,76 @@ dashedName: lab-debug-camperbots-profile-page # --description-- -Camperbot just started learning how to code and is trying to build a profile page. They asked a friend to look over their code so far and their friend said it had tons of errors. +Camperbot is trying to build a profile page. They asked a friend to look over their code and they said it has some errors. -Your job is to fix all of Camperbot's errors so they can continue to build their profile page. Complete the items in the user stories below and click "Run the Tests" to see if you fixed all the errors. +Your job is to fix all of Camperbot's errors so they can continue building their profile page. Complete the items in the user stories below and click "Run the Tests" to see if you fixed all the errors. **User Stories:** -1. Camperbot is not following best practices and has multiple `h1` elements on the page. Remove all `h1` elements except for the first one. -2. Camperbot is trying to use a `heading2` element. But that element does not exist in HTML. Fix that mistake so it uses the correct second level heading element. -3. Camperbot is trying to add some paragraphs but is using the wrong element. Fix these errors to use the correct HTML element for paragraphs. -4. Camperbot is using an `h3` element for the `Background and Interests` subheading but it has a syntax error. Spot the issue and resolve it. +1. Camperbot is trying to use a `heading2` element, but that element does not exist. Fix those tags so it uses a correct second-level heading element. +2. Camperbot is trying to add two paragraphs with `pp`, but those don't exist either. Fix them so they use correct paragraph tags. +3. Camperbot is using an `h3` element for the `Background and Interests` subheading but it has a syntax error. Spot the issue and resolve it. # --hints-- -You should only have one `h1` on the page. +You should have exactly one `h1` element on the page. ```js assert.lengthOf(document.querySelectorAll("h1"), 1); ``` -You should not remove the `
Text here
` ```js -assert.match(code, /\s*My\s+name/); +assert.match(code, /\
\s*My\s*name\s*is\s*camperbot\s*and\s*I\s*love\s*learning\s*new\s*things\s*\.\s*\<\/p\s*\>/i); ``` -Your first paragraph element should have a valid closing tag. Remember that `p` elements have closing tags using this syntax: `
Text here
` ```js -assert.match(code, /new\s+things\.<\/p>/); +assert.match(code, /\\s*I\s*enjoy\s*solving\s*puzzles\s*\.\s*\<\/p\s*\>/i);
```
-Your second paragraph element should have a valid opening tag. Remember that `p` elements have opening tags using this syntax: ` \s*I\s+enjoy/);
+assert.lengthOf(document.querySelectorAll("p"), 2);
```
-Your second paragraph element should have a valid closing tag. Remember that `p` elements have closing tags using this syntax: `
My name is Camperbot and I love reading and learning new things.
+My name is Camperbot and I love learning new things.
I enjoy solving puzzles.