Build your own pet! Use your imagination!
Use HTML Forms, JS Functions, DOM, for loops, and CSS styles to customize your personal pet.
To complete this project, students should have the following:
- Intermediate understanding of HTML structures.
- Intermediate understanding of JavaScript, For Loops, Objects, and DOM (Variables, Functions, getElementById, Events)
HTML | Description |
---|---|
form | An element that defines a form to collect user input. Contains form elements. |
input | An element that obtains information from the user. Can have different types. |
input type="text" | Defines a one-line text input field. |
input type="radio" | Defines a radio button. |
input type="submit" | Defines a submit button. |
input type="email" | Input must be email format. |
input type="password" | Password will be masked when typing. |
select | An element that creates a drop dropdown menu. |
options | An element nested within the select element that sets a specific value. |
text-area | An element that allows multiple lines of text. |
JS | Description |
---|---|
addEventListener "Submit" | An event that occurs when a form is submitted. |
addEventListener "Button" | An event that occurs when a button is clicked. |
To complete Part I, fulfill the following requirements:
- Set up your project file structure through the command line.
- Create the following:
- HTML file
- CSS file
- JS file
- Link all of your files correctly.
To complete Part II, fulfill the following requirements in your HTML file with the following parent and child relationships.
- Pet Name
- Type of Animal(Minimum of 4 options)
- Number of Legs(Minimum of 4 options)
- Special Abilities(Minimum of 3 options)
- Pet Email
- Pet Password
- Pet Description
- "Submit" Button
- Display data below the form using the DOM after clicking the "Submit" button
- Make it pretty with CSS
- Add more input fields
- HTML Forms - https://www.w3schools.com/html/html_forms.asp
- Event Listener - https://www.w3schools.com/jsref/met_element_addeventlistener.asp
- Object Properties - https://www.w3schools.com/js/js_properties.asp
- For In Loop - https://www.w3schools.com/jsref/jsref_forin.asp