question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible typo in the instruction of Cat Photo App Step 42

See original GitHub issue

Describe the Issue

At the end of the instruction, it says:

Go ahead and do this to specify where this button should submit the form.

But this step is just asking the camper to add type="submit" to the button element, and not asking them to set the destination where the form should be sent.

Affected Page

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

Your code

<button type="submit">Submit</button>

Expected behavior

The instruction should be “Go ahead and do this to specify that this button should submit the form.” or something?

Screenshots

No response

System

  • Device: Laptop
  • OS: Windows 10
  • Browser: Chrome
  • Version: 103.0.5060.134

Additional context

Noticed this during translation.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sidemtcommented, Jul 28, 2022

Thanks everyone for your comments!

I like @moT01 's shorter the better approach, but I also thought it’s important to explain why we are doing this. So I included the “But relying on default behavior may cause confusion.” part from @bbsmooth 's comment and opened a PR.

1reaction
moT01commented, Jul 28, 2022

The shorter the better

“The button you added will submit the form by default. Add the type attribute with the value submit to the button to make it clear that it is a submit button.”

Read more comments on GitHub >

github_iconTop Results From Across the Web

Step 42 Cat Photo App - The freeCodeCamp Forum
I am struggling with step 42 of the Cat Photo App. I'm not understanding what this step is asking and thus having trouble...
Read more >
Learn HTML by Building a Cat Photo App (1-10) - YouTube
Timestamps:00:00 - Intro02:20 - 103:18 - 204:16 - 305:00 - 406:33 - 508:29 - 609:56 - 711:07 - 812:15 - 913:28 - 10GitHub: ......
Read more >
Learn HTML by Building a Cat Photo App - Steps 41-50
Playlist with all steps : https://youtube.com/playlist?list=PLa-0Y08VoGnoZQbp32TfsRypozgB7Lp4GWalk through steps 41-50 of the Learn HTML by ...
Read more >
Learn HTML by Building a Cat Photo App - Steps 21-30
Playlist with all steps : https://youtube.com/playlist?list=PLa-0Y08VoGnoZQbp32TfsRypozgB7Lp4G Walk through steps 21-30 of the Learn HTML by ...
Read more >
FreeCodeCamp: Learn HTML by building a Cat Photo App
https://www.freecodecamp.org/learn/2022/responsive-web-design#learn-html-by-building-a- cat - photo -appIf you found my content helpful, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found