Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Objectives:
1. Create two linked web pages using XHTML code to structure the page.
2. Create a website that contains graphics: .jpg, .png, transparent gif, and favicon.
3. Create a website that contains ordered, unordered, definition, and nested lists.
4. Create a website that contains relative, absolute links, and anchors
5. Create a website that contains an email link
6. Use Internal, Inline, and External Cascading Style Sheets to format the web pages.
Formatting Project 2
Before you begin adding styles to your web pages, make sure that you have not added any formatting using
HTML tags (e.g. strong, center, or small/big tags). Make sure that the (X)HTML code validates. All formatting
must be accomplished using CSS.
In order to demonstrate that you understand the three ways to apply a style sheet, you will create one
external style sheet that will contain styles for both pages, internal (embedded) style sheets for each page,
and one inline (local) style.
Before you begin formatting the web pages, you must add some additional structuring code to them. You will
add some <div> and <span> elements to group elements together. You will also add some class and id
names to existing elements.
(X)HTML STRUCTURE
Please Note: Create your own class and id names. Do not use the examples provided here.
*Please note: class and id names cannot have any spaces in them.
Genre page
Create a <div> with a class name to encompass the Genre Heading and First Image eg. <div
class=”center”>
Create a <div> with a class name to encompass the two paragraphs about the film genre e.g. <div
class="genreinfo">
Create a <span> with a class name for every film title in the two paragraphs about the genre eg. <span
class=”filmTitle”
Create a class name for the copyright info. (If copyright info is NOT inside a block level element – create one
and add the class name to that element e.g. <p class="copyright">© name, 2010</p>
Create any additional <div>, <span>, class and id names as you deem necessary for your page.
Film page
Create a <div> with a class name to encompass the Film Name Heading and the image eg. <div
class="center">. Same class name as for Genre Heading and image on first page.
*Please Note: If you did not place the image after the Film Name, you should create the code to do this.
Create a <div> with an id name to encompass the transparent gif image and the two paragraphs about the
film e.g. <div id="filmInfo">
Add the same <span> and class name that you used on page one for every film title in the paragraphs on this
page.
Create <div> with id name to surround the nested list.
Create a <div> with an id name to encompass the Actor's name, his/her image, and the paragraph about the
actor e.g. <div id=”actor”>
Add the same class name for the copyright info as on page one. (If copyright info is NOT inside a block level
element – create one and add the class name to that element e.g. <p class="copyright">© name,
2010</p>
Create any additional <div>, <span>, class and id names as you deem necessary for your page.
After you add this code to the html documents, run through the XHTML validator to make sure the document is
still valid. Fix any mistakes before proceeding.
DIG 111 – Project #2: Structure and Format web pages with XHTML & CSS Page 2 of 4
Apply INLINE (LOCAL) style to the ordered or Apply to <ul> or<ol> tag for list of projects
unordered list to change list-style-type • font-family
• font-size
• font-style
All values for the styles must be designated (don't use "none" or "normal" or "inherit").
CSS VALIDATION
When you have finished creating the style sheets, go to the CSS Validator to validate the code:
http://jigsaw.w3.org/css-validator/ . Fix any mistakes before uploading the files to the web2 server.
Once you get the Styles to validate, copy and paste the CSS Validator code after the XHTML Validator code on
your web pages.
Handing in Project 2
1. Re-upload index.html file to the public_html directory (replace the existing file with the new one).
a. set permissions on the new index.html file
2. Upload the project2 folder (contains 2 .html files – project2_genreName.html and
project2_filmName.html, images folder with image files, and .css file – lastname_project2Styles) to
the web2 server.
a. set permissions for the project2 folder and all files/folders within it.
3. Open ANGEL and go to the drop box for project 2.
a. In the Message section of the drop box,
• type the URL for the index page (Homepage).
URL should look similar to this:
http://web2.niagaracc.suny.edu/~firstname.lastname1/index.html
• In the message section of the drop box,
o Write a paragraph describing your reaction to using style sheets to format
the web pages.
o Discuss any challenges you faced in using the style sheets.
o Explain the impact of using style sheets had (or will have) on your design of
web pages.
o What was the most difficult part of the assignment?
o Describe your experience using the XHMTL and CSS Validator for this
assignment.
I will not grade your project until I see that you have entered the required information into the ANGEL Drop
box. If I cannot view your project for any reason (you didn't upload it correctly, you didn't set permissions, you
didn't create a new link to your index page, etc.), I will not grade it. Please double check to make sure
everything is working correctly after you upload it to the web2 server. If it doesn't work, FIX IT!
PLEASE NOTE: You cannot earn an "A" on this project if your code (HTML and CSS) does not
validate!