WD Assignment2 2023S2-1
WD Assignment2 2023S2-1
WD Assignment2 2023S2-1
Web Development
COS10005
assignment2
index.html
register.html
order.html
images
potatochip.png
potatochip.png
logo.png
css
style.css
js
script.js
Figure 1: Directory structure
Additional files may be added depending on your own design.
Choose the right types of input elements for different required information in the forms, e.g., a
textbox for username and a group of checkboxes for favourite icecream types.
Other input elements can be used in your forms if necessary and appropriate for the content. Set
the method attribute of the form to POST and the attribute action to:
http://mercury.swin. edu.au/it000000/cos1
0005/regtest.php
A menu must be created on each web page that allows users to navigate through all the webpages on
your website. This menu must be properly styled using CSS.
Task 3: Accessibility
It is necessary that you design your web pages considering accessibility rules (refer to the rubric for
more details). You must submit the screenshots of WAVE’s accessibility checker to Canvas.
4.1 Features
Implement the following 3 features using appropriate HTML, CSS and JavaScript:
• Highlight the menu item in the navigator corresponding to the current webpage.
Web Development COS10005 - Assignment 2
• In page order.html, create a checkbox with label “same as delivery address” somewhere
appropriate near the fields for billing address. When this checkbox is checked, the fields for
billing address will be filled with the delivery address automatically. If the delivery address is
not completed when this checkbox is checked, display an alert or inline message: “Please enter
your delivery address first”.
• Allow users to choose from three types of credit card: Visa, MasterCard and American Express.
Based on the type of credit card, limit the length of the credit card number, 16 digits for Visa
and MasterCard, 15 digits for American Express.
Submission
Before submitting the assignment, please ensure that you have completed or considered the
following:
• Check your assignment against the attached marking scheme.
• Check Canvas for announcements related to the assignment;
• Ensure that all HTML and CSS files can be fully validated;
• You need to capture a screenshot of the accessibility checker for your submission
• The assignment is your original work. If your assignment is not your original work, your result will
be 0 marks for this assignment;
• Provide references for all third-party contents used on your webpages;
• Test your web pages on the Mercury server. If your assignment cannot be displayed on Mercury
properly, penalties will apply; and
The assignment should be submitted as an individual work through Canvas before the deadline.
• Upload HTML files separately then zip all CSS, JavaScript, image files and screen shot of the
accessibility check into a zip file named “wd_assignment_2.zip” to submit via Canvas (In total you
must have minimum of 5 files to submit).
• You need to put all the files in Mercury server and make sure everything is working then provide
the link to your website as a comment in your submission.
• You can submit the files for up to 5 times through Canvas and the latest submission will overwrite
the previous ones.
• Make sure you keep a copy of the assignment cover sheet.
Web Development COS10005 - Assignment 2
Marking Scheme
The assignment will be marked out of 100.
Mark Requirements Deductions
• At least 3 HTML webpages meeting • Web pages not fully validated against
the specifications (9) HTML5
• Webpages fully validated against • Web pages not displayed properly
HTML5 (3) • Not enough web pages
• Source code properly indented and • Lack of required HTML elements
organised (1) • Lack of required contents
HTML Pages 15 • Source code properly commented • Deprecated HTML elements/attributes
(1) used
• At least 3 ice-cream images (1) • Embedded or inline CSS
• Links on web pages not working
• Lack of required images
• Images too large or too small
• Appropriate and fluid page layout. • CSS files not fully validated against
(2) CSS3
• CSS files fully validated against CSS3 • CSS files not properly applied to web
(3) pages
• CSS code properly indented and • Inappropriate web page layout
organised (2) • Inappropriate contrast between
• CSS code properly commented (1) foreground and background text
CSS 15 • Consistent styles for all web pages colour
(1) • No comments or inadequate
• Professional, beautiful and creative comments
webpage style (6) • Lack of required CSS selectors
• Lack of required CSS properties
• Inconsistent styles for different web
pages
• Webpage style too simple
• No errors in code. (10) • Fields not validated as required.
• Fields validated as required. (18) • Form submitted with invalid input
• Form submitted only when entered data.
data are valid. (4) • Error messages not displayed as
JavaScript 40 • All error messages displayed in an required.
alert or as inline messages. (4) • No comments or inadequate
• Code properly indented and comments.
organised. (2) • Used inline or embedded script
• Code properly commented. (2)
Accessibility • Evidence of WAVE accessibility • Missing accessibility check
check (3) • Missing alternative text for images
• Images having alternative text • Wrong colour combination
10
(3) No skip link
• Make sure use suitable colours
with enough contrast, avoid
green and red colour combination
(2)
• All web pages have a skip link (2)
Highlighted • Feature properly implemented (5) • Feature not properly implemented
Menu Item 5