|
|||
| week 02a - web basics, assignment | |||
| MDP web basics : |
your website on the MDP server
|
||||||||||||||||
your MDP web site : |
As students in the MDP program, you are expected to create and maintain a web site to show your work-in-progress and completed projects of all types of media including writing. At the end of each term the MDP conducts an open house of student work: your term's work should be up on your web site for this event. This site lives on the Art Center people server, and your accounts are accessible at people.artcenter.edu/~username. To simplify the viewing of your school web site and make it look professional, you should set up a standard folder structure with a simple menu system for accessing each project. In other words, when someone visits your site, they should see a front page that directs them to each project/assignment you want to display (rather than seeing all the files). This has the additional benefit of hiding any experiments you may be working on from the casual user. This approach is implemented by having an index.html file at the top level of your account that acts as your menu. This top level index.html has links to the index.html files in each project sub-folder. All projects must be in sub-folders below your account. There should not be any files at the top level other than index.html menu. Of course, you'll need to update this index.html each time you add a new project you want to be accessible. Your server folder should look something like this:
|
||||||||||||||||
project structure : |
When building a web site, it's essential to create a folder/directory structure on your computer (or external media) that accommodates your whole project. This directory structure should include two major directories. The source_files sub-folder includes folders for master art files (e.g. photoshop docs), flash files, sound files, etc. These files are never put on the web server. The site sub-folder only contains the html files, GIF images, JPEG images, and any other files that are part of the website pages. The site folder exactly mirrors the structure of the files on the web server. This organization keeps the files organized and easily accessed, and so that extraneous files do not get uploaded to the server. Photoshop and other master files should never be uploaded to the server. In addition, this single directory organization makes it simple to create backups and archives of the project by saving the entire directory. To start the project, create a new folder, and then create several new folders inside this main project folder. A typical folder structure is like the following:
It is critical that you set up this empty directory structure before you start working on your web site. If you attempt to organize your files after you've made the site, you will, in all likelihood, break the links in your web pages.
|
||||||||||||||||
web file naming rules : |
When creating your web site, you must be very methodical when naming your files. First, never use spaces, uppercase letters, or any special characters in your file names. While your site may seem to work OK in Dreamweaver, on your local computer, once you put the web site on the server, violating these rules can cause you no end of problems. For the web page file names, be sure you use "index.html" (or "index.htm") for your first web page. Using this special name will tell the server to display this page as the default page for any directory of html files. Other HTML files should have meaningful names such as products.html or drinks_snapple.html, rather than names such as page1.html. Name your files as if you are giving the web site to someone else who won't be able to ask you any questions, for example, you 6 months after the project is finished when you can't remember anything about it. Web file naming rules:
And again, it's critical that you name your files correctly from the start. If you attempt to rename your files after you've created your site, you will, in all likelihood, break the links between your web pages.
|
||||||||||||||||
|
Some typical download times under ideal conditions, which rarely happen:
|
||||||||||||||||
| check the page size : | You can check the size of your pages by looking at the display in the bottom-right corner of the document window, next to the page dimensions. Note: This size does not include rollover images that are pre-loaded. To estimate the total size of your page including the rollover images, add the size of all the rollover images to the total shown by Dreamweaver. You can find the approximate size of a rollover image by double clicking on the normal image. The resulting dialog will show the size of the image in the right hand side of the main image, which is usually similar in size to the rollover image. If you want to know the exact size of the rollover, select INSERT>IMAGE and in the browse dialog, Dreamweaver will tell you the size of any file you click on.
|
||||||||||||||||
| page dimensions : | Your pages will be displayed on screens with a variety of screen resolutions
- from 800 horizontal x 600 vertical pixels to 1024x768 and beyond. As
a designer, you need to be sure your pages will look OK when displayed
in the different circumstances your target audience will encounter. Don't
assume that everyone has the same monitor setup that you have! For
example, Mac Book Pro laptops are normally set to 1440 by 900 pixels, yet still roughly
14% of people on the web have their monitors set to 800x600. For more info on browser statistics:
www.w3schools.com/browsers/browsers_display.asp
The situation is more complicated than simply screen resolution:
Based on all the variations, I've created a guide for designing pages for the two major screen resolutions: 800x600 and 1024x768. Designing with these recommendations will ensure that all your page content within the pixel dimensions will be visible in the worst case situations. My recommendations are only guides, and you should adjust your designs based on your project's requirements. You don't have to design exactly for these dimensions. In particular:
The size recommendations below are smaller than the actual screen size is because there is space taken up on the screen by menus, scroll bars, buttons, and other interface elements not on the web page.
Previewing page sizes in Dreamweaver You can preview how your page will look by selecting your page size dimensions in the pull-down at the bottom-right of the document window in Dreamweaver. This will size the document window to the dimensions so you can judge your design in regard to its dimensions.
If the dimensions you want to view aren't available by default, you can edit the defaults by selecting EDIT SIZES in the pull-down. Or, you can also simply resize the page to the right size. Note: selecting one of these previews does prevent you from designing outside the selected dimensions! It just shows you what it would look like. See pages 14-18 of Web Design in a Nutshell (O'Reilly) for more info. See webmaster.info.aol.com for information about AOL browser issues, and specifically their compatibility page webmaster.info.aol.com/compatibility.html
|
||||||||||||||||
| accessing the web server : | Uploading files to your personal site
Browsing your personal site
|
||||||||||||||||
| FTP and defining a site : | The MDP student accounts are on a Unix/Linux web server. Define a site in Dreamweaver
|
||||||||||||||||
| uploading files : | Once you've connected to the server, you can upload your site files (or download files from the server to your local computer). To upload files to the server, click on the folder or file you want to upload, and drag it from the right side to the left side. In most cases, you will upload the complete web site as a directory. In the above example, this would be the directory called proj0_site_v1. Drag this folder to the left hand side, and drop it when you've placed it over the top folder (public_html/). Dropping the folder on the "public_html/" folder ensures that you place the folder in the correct place. If you drop a file or folder onto another folder, the file will be placed inside of that folder rather than replacing it. Note that dragging the top level folder from the right side of the window will not copy that folder, it will only copy the files inside the top level folder. If you want to move a single file up to the server, then drag this file and drop it onto the correct directory on the server (or you can drop it on top of an old version of the same file). When you move HTML files in the Site Files window, Dreamweaver will ask if you want to Include Dependent Files? If you say yes, Dreamweaver will look in your HTML files, and copy any images in referenced in those files, even if you don't select them for the copy. In general, if you are copying a folder of a complete site, there is no reason to copy dependent files, since you are already copying all the files needed for the site (because they are all in the folder). But if you are copying an individual HTML file, then in general it's good to answer yes to including dependent files, to make sure that any images in that page are properly uploaded. As an alternative to dragging the files from one side of the Dreamweaver widow to the other, it is possible to move files through key command. If the file structure on your computer is the same as it is on the server, then you can click on the file in the Dreamweaver browser window and then click on the UP arrow button to upload it to the same location on the server. If you have the file open in Dreamaweaver, you can upload the file by using the key combination of COMMAND/SHIFT/U.
|
||||||||||||||||
| uploading existing
files on the server : |
When you upload and replace files that are already on the server, there are several issues you should note:
|
| all materials on this web site © copyright 2007, Philip van Allen |
top |