Be Brav3

FCC Challenge 30: Add a Submit Button to a Form

March 12, 2016

In Free Code Camp Challenge 30 we’re adding a submit button to the submission form.

Let’s add a submit button to your form. Clicking this button will send the data from your form to the URL you specified with your form’s action attribute.

Here’s an example submit button:

[html]

[/html]

Add a submit button to your form element with type submit and “Submit” as its text.

The original code is below:

[html]

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
[/html]

The updated code with submit button for the submission form is below:

[html highlight=”48″]

CatPhotoApp

Click here for cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats
[/html]