Description
Exercise 1
Below is an example of an invalid XHTML page. Your goal is to rewrite the code so that:
• No deprecated/obsolete tags are being used
• All elements are nested correctly (i.e. Hello)
• It validates as XHTML 1.0 Strict (See http://validator.w3.org/)
• Presentation is separated from content (All style should be specified in the head)
Exercise 2 Using XHTML, produce the following two list sets on a single page: • Outer-1 • Outer-2 o Inner-1 o Inner-2 o Inner-3 § Deep-1 o Inner-4 § Deep-2 • Outer-3 1. Outer-1 2. Outer-2 a. Inner-1 b. Inner-2 i. Deep-1 ii. Deep-2 3. Outer-3 a. Inner-3 Use an style sheet to style each list. Your CSS should style the bullet points as above. Make sure that nesting is proper and that the page validates as XHTML 1.0 Strict. Exercise 3 Theory – Explain, in your own words, how web designers can deal with CSS conflict resolution. What is the order of precedence between the different types of CSS (inline, embedded and external)? Explain in a short paragraph. Exercise 4 On a single XHTML page, include the following two div container elements in the body. Using an external stylesheet, add style to the div elements such that one div has some overlap with the second div (Hint: Make use of relative or absolute positioning). Both divs should have a padding of 5px all around, a green 2px dotted border, a width and height of 200px and their text should be centered. Also, add style to the span class “red” so that the text displays in red and is bold.
Exercise 5 Create a single page that demonstrates an XHTML form. The form should include all the fields you feel are necessary for submitting an order of books and must include at least one of the following input types: • text input field • select field • radio or checkbox input fields • textarea field The form does not need to do anything when submitted, although, CSS should be used to make it visually appealing. All style should be embedded (added into the head section of the document). Exercise 6 – Project The last exercise of each assignment will be continuous from assignment to assignment and will have the goal of building an e-store website by the end of the course. For the first part you will start creating the layout of the e-store. Using XHTML and CSS you will design the skeleton of the site. It will be broken down into 4 components. 1) The top banner. You will have a banner that stretches across the top of the site. It must have a background color as well as some heading text. This banner will be present throughout all the pages of your site. 2) The side menu. You will have a side menu on the left hand side (which will later be used to navigate the site). Create a list of navigational options in the side menu (i.e. home, checkout, my cart…). These should be “dummy” links and don’t have to be active at this time. 3) Inside content. Have some inside content to introduce the products you will be selling. For now, this can be decorated in any way. You can use this section to demonstrate your knowledge of various XHTML tags and CSS properties. 4) The bottom banner. You will have a bottom banner that stretches across the bottom of the site. Give it a background color, and add in some fake legal/contact us/about us text. This banner will be present throughout all the pages of your site. *Note: Although this isn’t a functional requirement, your sites should always be well organized with properly named files and well defined directories. It can be very difficult to achieve the same look and feel across all browsers. Obviously it is preferable to have the site look good across all major browsers (ie: Internet Explorer, Firefox, Chrome, Safari…) but for the sake of this course just focus on building the website so that it is compatible best with Firefox. ______________________________________________________________________________ Submission Criteria Your submission must include a README.txt file that includes the following information: • Students Full Name • Students ID • Difficulties (outlining difficulties will help the TA’s focus on repairing weaknesses) • Additional comments (anything deemed important for marking purposes) Please give meaningful names to each html file, folder to make the feedback process easier. All files relating to each Exercise must be placed in its own folder named EX-# where # is the number corresponding to the exercise. All the exercise folders must then be placed into a single assignment folder named: studentID-assignment1 The assignment folder must be compressed into a zip file and submitted through EAS on the correct folder (Programming Assignment#1). For example, for the first assignment, student 123456 would submit a zip file containing all the files and folders related to this assignment named a1_123456.zip, and will upload it to EAS. Please note that the markers reserve the right to deduct marks if the submission format is not followed as specified. Late submissions are not accepted; penalty for late submission will be 100% (Assignments submitted after the due date will receive a mark of 0). Also, email submission of assignments will not be accepted. Academic integrity: Students are encouraged to study and work in groups and discuss and share their knowledge with each other. However, copying is strictly prohibited and all assignments to be copies would not receive any marks. Also, those students who are found copying will face severe consequences. Students should be aware and observe the academic integrity & the university’s code of conduct. For more information please refer to the course outline. Evaluation Criteria: Marking schema of assignment no.1 Ex. Points Note #1 11 If styles are not specified in the head (-4). #2 11 #3 11 3 points for the order of precedence #4 11 4 points for each “div” 3 points for overlap among the divs #5 11 #6 15 3 points for each component 3 points for the position of components In total 70

