Allow plenty of time for this project. If you are new to creating web pages, you will probably need to review the basics of creating, editing, viewing, and uploading web pages from the previous projects while you are working on this project. Many students find they need to proofread their code several times before it is error free. Allow time to study lecture notes, proofread, practice and ask questions.
You can start this project now, but do not submit the project until after you receive your grade report for the last project. There may be corrections that need to be made.
Correcting errors that have been listed in previous grade reports must be completed before starting this project. Any uncorrected errors that have been noted in grade reports will result in a deduction in the score of this project.
Being able to send an accurate URL for your published pages is an important skill. Sending an invalid URL for this project will result in a deduction in the score of this project.
Links for Project:
To be graded:
In this project, you will:
Links:
Use the <a> </a> tag to create links. Links within your own website are referred to as relative links. Links to pages outside your website are absolute links. Both types of links require using the href attribute.
Standard format for a relative link:
<a href="filename.html">text for hyperlink to display on page</a>
Standard format for an absolute link:
<a href="http://www.domain.com/filename.html">text for hyperlink to display on page</a>
To create a link:
Sample code for a relative link to a page named "mywebpage.html":
<p>
Please visit my new <a href="mywebpage.html">web page</a>.
</p>
If a link is to a page OUTSIDE of your own website, an "absolute" link is needed. An absolute link requires using the complete URL for the value of the href attribute. Link code to the Parkland home page is written as shown below.
<p>
For more information about attending one of the best community colleges in the nation, visit the home page for <a href="http://www.parkland.edu/">Parkland College</a> in Champaign, Illinois.
</p>
Read Lecture Notes for this project to get more details about how to create code for links.
For more information about the anchor tag, visit:
http://www.w3schools.com/html/html_links.asp
Read the Lecture Notes about creating links.
Use the link to go to the W3Schools home page.
http://www.w3schools.com
On the W3Schools home page, click on the link to "Learn XHTML."
Review questions:
Assume you have a website for a business to provide people with home-cooked meals. Your website includes these three pages and they are stored in your webspace at Geocities.com.
The complete URL for these pages will be something like: http://www.geocities.com/yourlogin/filename.html.
The actual page names are:
On your home page, you have this paragraph of text:
<p>Our menus offer a wide variety of entrees.</p>
On your meals page, you have this paragaph of text.
<p>Return to our home page</p>
On your owners page, you have a paragraph that says:
<p>Check out our menus</p>
On your meals.html page, you have a paragraph that says:
<p>Meet the owners.</p>
On your meals.html page, you have a paragraph that says:
<p>Our meals all follow the guidelines for a well-balanced diet based on the UDSA's food pyramid.</p>
On the owners.html page, you have a paragraph that says:
The owners earned a degree in Food Service and Restaurant Management from Parkland College in Champaign, Illinois.
Open Notepad. Open the practice-xhtml.html file from the previous project.
If necessary, review information about editing existing files from an earlier project before starting work on this project.
After the paragraph that displays your address:
Save the changes.
In Notepad, open the file named practice.html from a previous project.
After the paragraph at the end of the page:
Save the changes.
View and test your pages in the browser.
Check your code against the sample solution for this project.
Before doing these activities, it is important to:
Open Notepad.
Use the File menu in Notepad to open the file named movies-xx.html.
Edit the code according to the directions given below.
After the last paragraph, add a new paragraph.
Add the following content for the text of the paragraph:
This website is being created for a class being taught online at Parkland College.
In the text of the paragraph:
Be sure to end the paragraph.
Add a new paragraph that says:
Return to my first page
In the sentence, add the code to make the words "first page" a link to your hometown.html page. Since this page is in the same storage location as your movies-xx.html page, use a relative link. The value for the href attribute is just the filename and extension: "hometown.html"
Be sure to end the paragraph.
Save the changes.
Notepad will only allow you to have one document open at a time. If you want to keep the previous file open while you work on another one, go to the Start button and open another window of Notepad.
With Notepad open:
Use the file menu to open the hometown.html page from a previous project.
Follow the directions given below to edit the file.
Place your cursor at the end of the code on your page: <h1>My Hometown</h1>
Press ENTER to start on a new line and type text that says: Introduction to Your Name (replacing the words "Your Name" with your first and last name). Surround the text with the tags to make it an <h3> heading.
Add a paragraph (just before the ending </body> tag).
In the paragraph type text that says:
Go to my movies page
In the paragraph, add code to make just the words "movies page" a link to your movies-xx.html page. Since this page is in the same storage location as your hometown.html page, the value for the href attribute is just the filename: "movies-xx.html" Be sure to end the paragraph.
Save the changes.
Test in the browser.
Edit if necessary and save again. You should be able to click on the links in your two pages to go back and forth between the pages. When you use the link to the Parkland homepage, use the Back button in the browser to return to your page.
Validate your code to check for errors using the online validator provided by the W3C. Only the movies-xx.html page is coded to take advantage of using the validator. If you want to use the validator for the hometown.html file, open the hometown.html file and copy and paste codes from the movies-xx.html page to:
If you choose to use the validator, ALWAYS use it BEFORE you load your files to Geocities. Review the Lecture Notes about the validator to help you understand how to use it more effectively.
http://validator.w3.org/file-upload.html
Upload the edited html files to your webspace at Geocities.
Go to www.geocities.com, sign in, click on File Manager and use the Upload feature to upload your pages to Geocities. Upload both of your html files.
Send the answers to the lab activity questions and the URL of your hometown.html file to the instructor.
Your URL should be something like:
http://www.geocities.com/login/hometown.html
When you send the URL to me, send a copy of the email to yourself and test the link to be sure it works. You will lose points if I have to ask you to resend your URL.
Reminder: Send answers / URLto both of these email addresses: