freeCodeCamp: Most common incorrect answers for step-1

Describe the Issue

Here is the list of the most common incorrect answers for learn-html-by-building-a-cat-photo-app/step-1

editable_file_contents unique_user_count
<html><body><h1>Hello World</h1></body></html> 57672
<html><body><CatPhotoApp>Hello World</CatPhotoApp></body></html> 4829
<html><body><CatPhotoApp>Hello World</h1></body></html> 3114
<html><body><h1>CatPhotoApp</h1></body></html> 1988
<html><body><h1>Cat Photo App</h1></body></html> 1829
<html><body><h1>Hello World</h1><h1>CatPhotoApp</h1></body></html> 857
<html><body><CatPhotoApp>Hello World<CatPhotoApp></body></html> 825
<html><body><h1>Hello World</CatPhotoApp></body></html> 823
<html><body><h1>Hello World</h1></body></html> 479
<html><body><h1>CatPhotoAppp</h1></body></html> 389

To see the indentations and line breaks: https://docs.google.com/spreadsheets/d/1P4a1kfRIVk5Q9pfuIqsoF3cQc6ehQiMST4ISArtbvSc/edit?usp=sharing

Considerations:

  1. The right answer is also included in the failed variations. Either google analytics is misfiring, or there is an issue with our evaluations logic extensions, tests, browser extensions, etc.
  2. It seems like a lot of users are confused about the placement of CatPhotoApp
  3. Adding a copy button feature for the code blocks might help with reducing the misspellings of CatPhotoApp
  4. Having the default seed as the wrong answer could mean users are just testing the UI. I could AB test disabling the button if seed does not change and see if there is an improvement in user behaviour.

Goals:

Reducing the bounce rate ( people leaving the platform ) on the entry challenges is highly critical. Increasing the percentage of the people who go to the next challenge would significantly increase all of our metrics.

Suggestions

Oliver suggested changing the instructions to say ‘change its text from “Hello World” to “CatPhotoApp”’ should clarify it a bit further.

Other suggestions? I am all hears.

Affected Page

https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-1

### Tasks
- [ ] update instruction
- [ ] investigate why correct answers are failing
- [ ] write tests for common variations (after the new instrucstions are in)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (20 by maintainers)

Most upvoted comments

I guess we can try Jessica’s version: https://github.com/freeCodeCamp/freeCodeCamp/issues/54024#issuecomment-2048857368.

I think having both “Hello World” and “CatPhotoApp” in the instruction could cause confusion:

Change the text of the h1 element below from Hello World to CatPhotoApp and watch the change in the browser preview.

If I give it a quick scan, my lazy brain would just register “Hello World” and immediately jump down to the editor, so I think it makes sense to just show a blank editable region instead.

I haven’t check the analytics since the changes were merged in. But looking at the forum it looks like there is still some confusion on how to go about the first step

It looks like campers are either not sure what to do, so they don’t write anything. Or they are writing <catPhotoApp> like the results show.

Here are a few postings from the forum within the last week and a half

https://forum.freecodecamp.org/t/learn-html-by-building-a-cat-photo-app-step-1/683131 https://forum.freecodecamp.org/t/learn-html-by-building-a-cat-photo-app-step-1/684136 https://forum.freecodecamp.org/t/learn-html-by-building-a-cat-photo-app-step-1/683382 https://forum.freecodecamp.org/t/learn-html-by-building-a-cat-photo-app-step-1/683480 https://forum.freecodecamp.org/t/learn-html-by-building-a-cat-photo-app-step-1/684804

This tells me there is still a high volume of guessing going on.

IMO, I think it would be better to start with a blank page instead of giving them the h1 element and asking them to change the text. That might be leading to some of the confusion.

By having them write the h1 element, then they will get to see the result appear on the page instead of just the text changing. So it might be a better learning experience overall.

Something like this might work

HTML elements have an opening and closing tag with content in between.

Here is the basic syntax:

```html
<openingTag>content</closingTag>
```

Notice how the syntax of the closing tag includes a forward slash `/` before the element name. 

The first element you will learn about is the `h1` element. The `h1` element is a heading element and is used for the main heading of a webpage.

```html
<h1>This is a main heading</h1>
```

Create an `h1` element and give it the text `CatPhotoApp`.

When you are done, press the "Check Your Code" button to see if it's correct.
  1. What’s the difference between the two?

<html><body><h1>Hello World</h1></body></html> 57672 <html><body><h1>Hello World</h1></body></html> 479

  1. Mention that code goes between the angular brackets. [✓]<body><CatPhotoApp>Hello World</CatPhotoApp></body> 4829 [✓]<body><CatPhotoApp>Hello World</h1></body> 3114 [✓]<body><CatPhotoApp>Hello World<CatPhotoApp></body> 825 [✓]<body><h1>Hello World</CatPhotoApp></body> 823

  2. I like the idea of tests failing, as it encourages the learner to develop trouble shooting skills, perseverance, and patience.

  3. A short video or animation guiding the learner through the step https://supravisor.github.io/TestPod/

  4. There are 2218 misspellings of CatPhotoApp, mostly due to spaces, so not sure how effective a copy button feature is. <html><body><h1>Cat Photo App</h1></body></html> 1829 <html><body><h1>CatPhotoAppp</h1></body></html> 389 Also, it will teach campers to type exactly as the instructions state. As @ojeytonwilliams suggested, tailoring the hints to each variation.

The code below contains an HTML `h1` element. The element has an opening tag, `<h1>`,
a closing tag, `</h1>`, and the text that the element will display goes in between the tags.
You can see the element's text, `Hello World`, displayed in the browser preview.

Change the text of the `h1` element below from `Hello World` to `CatPhotoApp` and watch
the browser preview update to display the new text.

When you are done, check your code to see if it's correct.