At the end of this Tutorial you will be able to:
You can view the sample web page you will update in this Tutorial by clicking the image or text link below. The finished sample will open in a new tab of your web browser.
bootstrap-form.html
What are called forms in HTML enable users to submit information to websites for processing. A typical example of a form is shown below.
It includes three entry areas or form fields into which a user can input information: Your Name, Your Email and Your Message. At the bottom of the form is a submit button named Send. When clicked or tapped, this button submits the information entered in the form fields to the website.
Your web hosting account on GitHub cannot run the type of server-side program that is needed to process information entered by users into HTML forms. As a result, you need to use an external online service to collect the information entered to an HTML form by users of your website.
Two such popular email-processing services that offer a free tier are the following:
In this exercise, you will work with the following web page and stylesheet:
You can close the browser tab containing the bootstrap-form.html web page.
Your websites/bootstrap sub-folder shown now look as shown below.

You can close the browser tab containing the bootstrap-form.css stylesheet.
Your websites/bootstrap/assets/css sub-folder shown now look as shown below.

You have now saved the two files you need for this exercise.
There are no sample images to download for this Tutorial.
For your website to use Formspree, you first need to register with this free online service and receive a unique code for adding to your HTML form.
Here are the steps:
At the top-right of the home page, click the Get Started button.That’s it. You are now registered with Formspree. In future, you can sign into Formspree by clicking the Sign In button on the home page, and entering your Email and Password.
In Formspree, a Project is a way of organising different forms – located on the same or different websites – together in a single group. So, before you can create a form, you must first create a Project to store that form. Follow these steps:

As with the Project Name, the Form Name is for your own information only. It will not be displayed on the web page of your website that will contain your HTML form.
If you have created more than one Project in Formspree, the Project option becomes a drop-down list from which you can select the Project in which you want your new form to be grouped.
When finished, click the Create Form button.
It displays the so-called endpoint – the value you will enter in the action attribute of the form you want to create in a web page or pages of your website.You will copy-and-paste this endpoint in the Updating the HTML of your form section below.
In Formspree, if you click the Forms option near the top-right of the screen you will be returned to the ‘Forms’ screen where you can see your new form listed along with any others you have may have created.
You do not need to create more than one form endpoint for the various forms you will create on your personal portfolio website. You can simply re-use the same endpoint on every form.
In future, when you want to access your endpoint details from to use in your forms:



Your final step is to update your template form with the endpoint code you received from the Formspree website.

That’s it. You have now completed this Tutorial.
And you now have a functional email contact form ready to use on your website.
Follow these steps below to upload your entire Bootstrap folder to your website on GitHub.




Your uploaded web page is published on GitHub at a web address similar to the following, where username is the username you have chosen for your GitHub account:
https://username.github.io/bootstrap/bootstrap-form.html
It may take a few minutes for your uploaded files to appear on GitHub.
Return to Contents.