mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-03 01:01:13 -04:00
fix(curriculum): correct and improve the instruction (#47067)
* fix(curriculum): correct and improve the instruction * apply jeremylt's suggestion Co-authored-by: Jeremy L Thompson <jeremy@jeremylt.org> Co-authored-by: Jeremy L Thompson <jeremy@jeremylt.org>
This commit is contained in:
@@ -9,7 +9,7 @@ dashedName: step-42
|
||||
|
||||
Even though you added your button below the text input, they appear next to each other on the page. That's because both `input` and `button` elements are <dfn>inline elements</dfn>, which don't appear on new lines.
|
||||
|
||||
You learned previously that the button submits the form by default, but you can explicitly add the `type` attribute with the value `submit` to make it clearer. Go ahead and do this to specify where this button should submit the form.
|
||||
The button you added will submit the form by default. However, relying on default behavior may cause confusion. Add the `type` attribute with the value `submit` to the `button` to make it clear that it is a submit button.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user