Project 4: Website Development Using HTML and CSS Project Instructions
This project assignment will be marked based on a number of requirements that your website meets. Specifically, this project involves 18 tasks. Each task has some instructions and a checklist of requirements. You may also want to check marking scheme that posted in Assignment 4 forum.
Task #1: Choose a Text Editor
Instructions
In order to make changes to template.html and mystyle.css youll need a basic text editor which have syntax highlighting. On Windows, download Atom. On a Mac, download BBEdit.
Do NOT use Microsoft Word or any other text editor that you might write an essay or formal paper in.
How to Install Atom for Windows?
1. Download the Atom installer (remember where you saved it).
2. Find the Atom Setup file.
3. Open the Atom Setup file and wait for the setup screen to disappear.
4. Youre done! Atom will automatically open for the first time to get you started. An icon should now be on your desktop to run Atom again in the future (You can also access Atom by searching for it from your startmenu).
1
If you are having any issues on installing Atom, you can check out an official tutorial on installing Atom on any platform.
How to install TextWrangler (BBEdit) Macs Only
1. Follow the video tutorial to download and install theTextWrangler (BBEdit).
2. Download BBEdit from the following links:
http://www.barebones.com/products/textwrangler/download.html
3. You may also find in your App Store
Checklist
1. Youve downloaded Atom for Windows and TextWrangler for Mac.
2
Task #2: Create the Required .html Files
Instructions
It is recommended that you make a special folder on your Desktop called Website or Project 4 and put all of your assignment related files in this folder.
Go to the Assignments page on CourseLink, click on Project 4.
1. Locate the Project_4.zip, downloadlink
2. Click the link or right-click and select Save Link as
3. Save the file to your Website folder
4. Unzip Project_4.zip
i. On Windows: right-click -> Extractall
ii. On Mac: double click
5. Copy and paste template.html so that you have four (4) copies of it.
6. Rename them: index.html, naturaldisasters.html, technologicalinnovations.html and otherapplications.html for the option A; index.html, hotels.html, restaurants.html, venues.html for optionB.
7. You dont need a file called template.html any more. Make sure that filenames are lowercase and that the extensions are .html.
Checklist
Option A
Option B
1. index.html exists
1. index.html exists
2. naturaldisasters.html exists
2. hotels.html exists
3. technologicalinnovations.html exists
3. restaurants.html exists
4. otherapplications.html exists
4. venues.html exists
All files in the same folder
3
Task #3: Investigate Host HTML Works
Instructions
You have investigated how HTML works in your Lab 4 activities. If you need to refresh your memory you can check out other HTML tutorials. It is a bit overwhelming at first, but just take it slowly. You can open up a blank file to start testing this out.
Follow along in your basic text editor to start understanding the basic of HTML. It is very important that you understand these basics before you proceed, so go test it out now.
You can view your file as a website by right-clicking it and selecting open with (you can select the web browser of your choice). This only works for .html files. Note that before any changes will appear, you must save the file, and then reload your browser.
Checklist
1. Youunderstandthataddingtexttoyour.htmlfilescausesthetexttoappearonyour website when viewed in abrowser.
2. You understand that tags (like
) have special effects on the content of your webpage.
3. Youunderstandthatyoumustsaveyourfileandrefreshyourbrowserbefore changes willoccur.
4
Task #4: Use Horizontal Rules, Paragraph Tags, and Line Breaks
Instructions
Now that you know some of the basics of HTML, it is time to start creating your webpage. Open up a file like index.html in Atom or TextWrangler (BBEdit), or another basic text editor. Use your knowledge of HTML to start adding some text to the page. Add some tags to format the text how you wish.
To change the layout of your text, you can use horizontal rules, paragraph tags, and line breaks.
Paragraphs of text can be enclosed by
tags. Paragraph tags add spacing before and after each paragraph. Note that this wont indent the paragraph.
Line break tags
basically put an enter or new line into your text. HTML ignores whitespace so it doesnt matter how you space things in your HTML code, it wont affect how it displays in a web browser.
Horizontal rules
place a horizontal line across the page. Their appearance can be modified using CSS. They are usually used to separate sections. You are expected to have at least one
somewhere on your webpage.
Checklist
1. You have at least 1
tag on your website.
2. You are aware of how to use
tags.
3. You are aware of how to use
tags.
5
Task #5: Investigate How HTML Works Part 2 Instructions
It is very important that you know how HTML works before going any further in the assignment. Re-read some of the HTML tutorials. https://www.w3schools.com/html/
Keep practicing, and then practice a little more. It may take some time getting used to this. Try to do the following things in some of your .html files, and make sure that they work:
bold
italicize
underline some text
add a line break
add a horizontal rule
add a link
add a heading like
write a paragraph
make some lists
insert an image
insert a table
You may delete the elements after you are satisfied you know how they work, the point of this task is just for you to make sure you know how to use HTML.
Checklist
1. You have read the HTMLtutorials.
2. Youhavefollowedalongwithsomeofthesetutorials.
3. You have experimented in your .html files by adding some elements.
6
Task #6: Investigate How CSS Works
Instructions
Like HTML, CSS is going to be difficult to learn. You have worked through the Lab 4 to help you grasp CSS and can review these additional CSS tutorials.
In mystyle.css, there is a section of code with the following structure:
In your .html files, there are 3 main sections:
Everything between the
tags represents the main section of your webpage. In your CSS file, everything between .maintext {and} effects the appearance of your main section.
Lets look at an example. Say we wanted all of the text in the main part of our webpage to be blue. We could through each of us .html file and add the line , but that is a lot of repetitive work. Instead, we can just alter the CSS file and the line color: blue.
If you save your CSS file and reload your browser, all of the text in your main section should be blue.
7
In a similar fashion, there are also sections in your mystyle.css that correspond with your links and header sections. Note that all of the CSS code for all there has:
This means that it is a class and therefore you can put
One thing you shouldnt do in CSS is nest burly braces: {{}}. If you do, it may completely break your CSS.
One more example before you are going to investigate CSS on your own. Remember the HTML tags that you experimented with earlier:
,
,
,
tags.
tags denote rows in the table.
tags denote cells in the table. Your table must have at least 2 rows and columns.
Checklist
1. Your website has a table on it (Pictures of tables dont count).
16
Task #15: Centre a Table or an Image Using CSS
Instructions
You can center an image or table by adding a new class to your CSS, like:
Apply it to the image or table by adding class=imagecenter or class=tablecenter inside of its opening tag. Inside of the new CSS class, add these lines:
This will force the element to occupy the center of its section. You can also force something to the right or the left by using: float: left; or float: right;
Checklist
1. At least 1 table and/or image is centered.
17
Task #16: Use Appropriate Indentation in Your HTML and CSS Files
Instructions
Good indentation makes it easier to read and debug your code. Whenever a new logical section of your code starts, you increase the number of tabs by one.
Whenever a logical section of your code ends, you decrease the number of tabs by one. Look at the indentation tutorial, and the given files for more information.
Checklist
1. Youveindentedyourcodeappropriately.
18
Task #17: Implement the Hover, Link, Visited and Active Pseudo-Classes Instructions
Implement the CSS hover, link, visited and active pseudo-classes as per the tutorials. Each pseudo-class should use at least one selector.
Checklist
1. The hover pseudo classworks.
2. The link pseudo classworks.
3. The visited pseudo classworks.
4. The active pseudo classworks.
19
Task #18: Use Correct Naming for all Webpages and Pictures
Instructions
It is essential that all of your webpages and pictures have correct naming, as if they dont you will encounter complications uploading your files.
All filenames should be lowercase with correct extensions.
In order to modify file extensions in Windows, under Windows Explorer, go to Tools- >Folder Options, then go to the View tab, and deselect the box labeled Hide file extensions of known file types.
Correct extensions:
Webpage files should have the extension.html
Picture file extensions vary from picture format to picture format.
It is safe to make the extensions lowercase, but do not change them from one type to another, unless you are using a graphics program such as The GIMP. (The graphics program will change the graphics format to match the extension.)
Incorrect extensions:
Anything withcapitals.
Anything such as.html.html
If you have used inappropriate filenames or extensions, then you will have to fix them, and fix all references to them in your HTML code. (i.e. tags andtags).
On a related note, when you are working on your webpage on your computer, you should have all files in the same folder.
Checklist
All filenames are in lowercase with correctextensions.
All references to inappropriate filenames in your code have been updated.
20
Submission Instructions
Once youve finished your website, save it on a USB key and use a different computer to make sure all internal links and external links are working.
Then compress (zip) the website folder (including all files and images) and submit the zipped folder through the Dropbox link located in the NavBar on the Course Home page. Please do not publish it.
21
Reviews
There are no reviews yet.