08: Form Build
Overview
Demonstrate your understanding of the learning activities by applying the concepts by adding an HTML frontend form to your course site.
♨️Work with your group on applying these concepts and meeting the form specifications provided. You will submit your own, published form page for feedback and assessment.
When your groups meets, consider starting your meeting with a prayer.
Instructions
File and Folder Setup
- Create a new HTML page on the wdd230 course website in the same space as the home page and name it form.html.
- Create a form.css file within the styles folder.
HTML
- In your form.html file, add the standard HTML structural components.
- Include your course home page's header, navigation, and footer.
- In the main area, create a simple
form
with the following fields:
Note: Each form field element must be contained or referenced with a
label
element in order to be accessible. Labels ensure that form controls are announced properly by assistive technologies, like screen readers.- Username
- text type
- id
- name
- required
- Password
- password type
- id
- name
- required
- the user inputted value must be at least eight (8) characters long and can only be alpha-numeric
📑 pattern attribute.
- Password repeated for confirmation
- password type
- id
- name
- required
- must match the first Password field input value. If it does not match, show a message and focus the user back to the first Password to try again and erase both Password values from the fields.
Example: ⚙️ Contact Us Form with Required Matching Key Phrases - CodePen Example
- Email
- email
type
-
id
-
name
-
required
- the email address must come from the byui.edu domain.
Validate the email input using apattern
.
e.g., ⚙️Email Input Validation - CodePen Example -
title
, the title will supplement the error message and support mouse over messaging.
e.g., "A valid byui.edu email address."
- email
- Page Rating
- range type
- id
- name
- Allow values from 1 to 10 with a step of 1
- Display the current value to the user on any input or change to the range value.
Example: ⚙️ Form Input: Range - CodePen Example
- Button
- submit type that is has an appropriate text label
- Username
- Use a
form
with aget
method
andaction
that points to a confirmation page named "record.html".
Your record page should display a simple confirmation of form submission.Displaying the values submitted from the form is not required on the record.html page. To properly display the values submitted from an HTML form on the action page, we would need to use server-side programming languages or other backend technology frameworks to process the form data and generate the desired output.
CSS
- Style the form using design principles for alignment, proximity, readability, and accessibility.
- Use at least three (3)
:root
pseudo-class CSS variables to define common property settings in your existing CSS rules.
Testing & Submission
- Make sure your common home page navigation links to this form page assignment.
- Commit and push your local updates to your wdd230 GitHub Pages enabled repository.
- Practice good design and development by testing and adhering to the Course Development Standards checklist.
- Self check and audit your own work by using this audit .
- Run a browser DevTools
Lighthouse
report in the
mobile
view and check for know issues in these categories:
- performance,
- accessibility,
- best practices, and
- SEO.
- Submit your home page URL in I-Learn.