Starting from:

$24.99

SENG1050 - Assignment 2 Solution


The objectives of this assignment are
1. to exercise your ability to create Web pages using HTML and CSS,
2. to transform the XML documents from Assignment 1 into HTML using XSLT,
3. to test your skill in employing HTML features such as forms,
4. to evaluate your expertise with JavaScript for client side processing.
You are NOT allowed to use a HTML generating program for this assignment. This includes DreamWeaver, Microsoft Frontpage, Saving to HTML from Word, etc. You must write all of the HTML tags yourself in a plain-text editor such as NotePad. Any assignments that use HTML generated from a tool will be given ZERO.

Outline
The directors of goHoliday have decided to expand their site to include holiday suggestions submitted by the public. To this end your project is now to create a website at which people can complete a form recommending a holiday with all the details required by the goHoliday team.
The goHoliday team do not want a website with a sterile, professional look about it, but would prefer a simple, friendly and attractive website.
Your task now is to build a friendly, welcoming website with functionality for data collection of the nature of the Holiday Pages of Assignment 1. In the interest of transparency, the information is to be displayed on the web page in such a way that it matches the website theme.
Your assignment will have the following parts.
1. A Homepage
2. A "Data Collection" page
3. 2 Category pages with descriptions of THREE holiday packages in the category.
All pages must have good readability, consistency and navigation. Details of all of these pages are given below.

General guidelines for preparing your all web pages
All pages will be coded according to the HTML5 standard.
All pages will contain the full HTML5 document structure, including <!DOCTYPE>, <html>, <head>, <title> and <body>
All pages will use Cascading Style Sheets for visual formatting. You must use an external style file (style.css) which will define the style for all web pages you have created, Embedded (Document-level) style (where appropriate) and a few (NOT many) inline styles.
All visual formatting of the Web site will be implemented usingCascading Style Sheet s.
Use one external CSS for all web pages.
Use at least one id and one class selector.
At least one <div>, used to provide some interesting styling (your choice of borders, background, floating alignment, etc.)
At least one <span>, used to provide some formatting (e.g. a colour or font change) for a few words of text
Use a document-level style sheet to apply styles that are unique to the particular page (if appropriate).
Only use inline styles for one-off visual effects.
Your assignment directory will contain a sub-directory, named images with all the image files you are using in your web pages.
A nice background for the whole web site is required. The text must be readable with the background.
A left side margin of 1 cm for all pages will be used.
Use hyperlinks on each of the pages that provide navigation capabilities for your site.
Hyperlinks from the Index page to other pages. Also hyperlinks from other pages back to the Index page. These links should use a relative URL.

Homepage
A link to the data collection page (form).
Terms and conditions. Use template at https://termly.io/resources/templates/terms-and-conditions-template/
About us. Use template at https://www.impactbnd.com/blog/best-about-us-pages
Contact. Follow examples at https://www.ventureharbour.com/15-contact-form-examples-help-design-ultimate-contact-page/. This need only be mail, email and telephone - include other contacts if you wish.

Data Collection Page
As we already know, the goHoliday team want a form for Data Collection where a member of the public can submit a holiday suggestion for publication.
This page will allow website visitors (users) to provide details about their suggested holiday. This will be done as a form, which sends the information to http://jkorpela.fi/cgi-bin/echo.cgi when they click the "Submit" button. The following things need to be included on the page.
1. An appropriate level 1 heading.
2. Information about the person submitting
Their name (use 1 or 2 text fields here - your choice) Their email address.
How many previous holidays they have submitted.
A binary choice question such as whether or not they have been on a holiday in the past 5 years (not necessarily this - feelfree make up your own question). Apply a default response here.
3. Information about the suggested holiday - Include at least the following:
Name of the holiday
A dropdown box for the user to indicate the category of the holiday i.e. beach, luxury, adventure, etc.
A textfield for the user to enter a description.
Checkboxes to indicate whether accommodation pricing is included, whether a coupon code is known, or any other property that you have listed in Assignment 1.
If you include only the items mentioned above you will NOT get full marks for the assignment. In addition, you will collect at least 2 more relevant pieces of information that make your form different from others. Use a variety of form input types.

Validate the form
You will write Javascript functions to validate the form (DO NOT USE HTML5 form validation attributes such as 'required').
1. Use JavaScript to perform client-side data validation.
2. The validation functions should check that at least three required inputs (marked with asterisks) in your form are filled out.
3. These should be different types of input (e.g., textbox, dropdown menus, radio buttons or checkboxes), so the validation will be done differently for each one.
4. The validation functions should check a valid email address (please do not use HTML5 form validation INPUT types such as INPUT type="email").
5. If the form does not pass the validation check, the user should be presented with an alert message asking them to provide the missing information or correct the wrong information.
The validation functions should be initiated when the form is submitted.
The structure and presentation of this page is up to you however the specifications provided here must be followed.

Category Pages
You will be writing an XSLT document to embed your XML holiday pages from Assignment 1 into HTML. The HTML that is generated should fit in with the style of the rest of your website (ie similar formatting, colors, etc). You will need to use CSS in your generated HTML.
Note that all your XML holiday pages have the same tags and DTD and therefore they can all use the same XSLT document. This means you will only make 1 XSLT file, which will have the following:

Visual Formatting

Web Design
A successful website must meet clearly identified goals and provide compelling content that draws target audience to the site. In addition it should be easy to navigate and feature visual attractiveness.

Coding Style
Your HTML code, CSS code and XSL code must be neat, clear, indented, and commented.
Other than the specifications mentioned, the way you design your page is up to you. However it should use semantically-correct tags. All your work should be validated.

Submission
Your submission should contain all the files that contribute to the Web site, including HTML, CSS, XML, XSL and image files. You must also include a README.txt file, containing your student number, list of the files that are part of your submission, and the original sources of any data, images, etc taken from other places.
Finally, your submission should include a completed Assignment Cover Sheet. You should download a cover sheet template, then fill in the details and include it with your submission. Note: an Assignment Cover Sheet submitted electronically is deemed to have been signed. Your assignment cannot be marked until a completed cover sheet is received.
Failure to follow submission instructions will incur a penalty.
site.
The assignment is to be submitted on Blackboard via the Assignments page . To submit your files, place them all into a single .zip archive named with your student id (eg., c3012345.zip).
If you have trouble submitting, contact me as soon as you can. Failure to submit correctly is not of itself a sufficient reason to apply for Adverse Circumstances on the assignment.

Marking Guidelines
The following serves as a rough guide to how many marks are allocated to each part of the assignment.
Total Marks: 100
Overall and Design: 20
External Style sheet: 10 Homepage: 5
Data Collection Page: 35
Information Display Pages: 30

More products