Project
Let's use a form to create a story:
Read the below guidelines and try to reproduce what you see in the above picture.
How to start
Before starting the project, you need to:
- Copy/paste the
Project
folder from ClassesICT to your personal HTML folder. - Open Notepad++ and in Notepad++ open the file
index.html
fromProject
. - Run your code: open
File Explorer
, go to yourHTML
folder and double click on your fileindex.html
.
You should get the result below
General Information
- The action for the form is
story.html
and the method isGET
. - It is very important to give the correct name to each field (see list below).
- See below for the different types of the input fields.
- All the fields are required.
- Inside the
<select>
add a few<option>s
for users to choose from, for example slower, faster, etc,... - Let’s add a few
<option>s
with values within the<datalist>
element. For example:If it gets dark, look at the light.
. - textarea should have 8 rows and 40 columns.
type
- text
- text
- text
- text
- text
- number
- radio
- select
- datalist
- textarea
- submit
name
- animal-1
- animal-2
- animal-3
- adj-1
- verb-1
- num-1
- answer
- speed
- quote
- message