Let's get started with a Web Form!
- Login into your Code.Org account.
- Click on your name.
- Choose: My Projects
- Click on your My First Web Site project.
- Click on the Add HTML button.
- Right click on: new-2.html
- Choose: Rename
- Name this file: form.html
- Delete all the lines in this file.
- Copy the Form Page Template (HTML) code (below).
- Paste that code into your
form.html
file.
- Change your page title, your Author name, and your page heading to something appropriate.
- Change: put-your-email-address-here to your email address.
- Change: put-your-subject-here to your subject line.
- Change: put-your-form-page-url-here to the URL of your form page.
- Change the
put-legend-here
and both put-label-here
to something appropriate. For example, Demographic Information, First Name, Last Name
- Copy the Form Page Styles (CSS) code (below)
- Paste that code into your
style.css
file.
- Change some styles.
- Click: Refresh and Save
Form Page Template (HTML)
Form Page Styles (CSS)
Example