practice HTML5, CSS3, JavaScript, and client-side validation.
This assignment is built upon Assignment 3 and Assignment 4. If you are unable to start this assignment because Assignment 3 or Assignment 4 were incomplete - email me for a clean version of the Assignment 3 or A4 to start with.
In this assignment, you will practice the fundamental technologies in web design and development, using HTML5, CSS3, and JavaScript for client-side validation.
You are going to create a webpage (registration.html) based on the following specifications and link it to the website you worked on from Assignment 3.
Design your page (registration.html) using external CSS (main.css). Taking the advantage of external CSS, it will be easy to adapt main.css to multiple pages in the future (for simplicity, we only work on one page registration.html for this assignment). Name the external CSS as main.css and place it under folder "css" of Assignement 3 work space). Absolutely, you are still allowed to use internal and/or inline CSS based on your design. The layout of (registration.html) should be like Figure 1 as follows.
Figure 1 Layout for webpage (registration.html) see image.
Figure 1 is abstract schematics. Detailed specification is as follows. You can freely choose other proper features that were not specified.
1) This page (registration.html) will be linked to the website you worked on Assignment 3. Details will be in the following section "Getting Started".
2) The specific height and width of each panel is for you to define.
3) the page should have a background of some color;
4) the text of the header and footer should be in a different color than the rest of the panels.
5) For simplicity, assume that the desktop screen width is fixed and set at 1200px. Ideally there should not be any horizontal scrolling.
6) Title for the page: Registration-your name.
7) Header section contains your name and a logo of your choice.
8) The navigation panel includes links to other pages of the website, e.g. Home, Lists, Tables, images, etc. that were defined in Assignment 3 and Assignment 4.
9) Footer section includes copy right.
10) Right side panel contains a small email image followed with your email. You can look for a royalty-free email image, e.g., name it: email.gif. Store it under subfolder "img". Refer to File structure section below.
Structure this page as above Figure 1. The "body" section in Figure 1 includes a form. Try your 3 best to organize and style the form in a nice way. The appearance will be evaluated. The form fields are listed as follows and more specifications follow in the section of Client-side Validation. You can choose proper attributes for each field if not specified. Validation rules are specified afterwards.
1) First Name
2) Last name
3) User name
4) Password.
5) Second password, to confirm password match.
6) Phone Number
7) E-mail
8) Street number and street name
9) City
10) Province
11) Postal Code
12) Submit button,
13) Reset button
Client-side validation is implemented in external JavaScript file (registration.js) in folder "js". The validation rules are as follows:
< input type="hidden" name="lastName" id="lastName" value="Your last name goes here" />
Important:
Note:
The following screenshot is the current file structure, which includes the files and folders from A3 and A4. You may not have everything in the screenshot. This screenshot is to show you the file structure with the newly added files: main.css, registration.html, registration.js, email.gif.
You should test your complete site with at least Firefox and Chrome. You may display a note in the registration page which browsers your site works the best. It's wise to test with different display settings/screen resolutions.
Your HTML & CSS must be well-formatted and properly commented where appropriate.
Your code will be evaluated for correctness of syntax and appropriate usage.
Validate HTML: https://validator.w3.org/
Validate CSS: https://jigsaw.w3.org/css-validator
All JavaScript code must not contain any run-time errors/exceptions.