HTML Basics:
|
|
|
|
FrontPage has some work to do behind the scenes when you save a page. It must figure out what path to write for the SRC of each image. When you save to a new location, this can get tricky, as mentioned on the previous page. Image links may break. Rules to prevent broken
images:
|
| If image is: | Path will be: |
| in web
and in same folder as page |
Filename
src="carla2.jpg" |
|
in web and in different folder from page |
Relative path
src="../web/carla2.jpg" |
|
not in web but on same disk as web |
Relative path
src="../../multimedia/house.jpg" (Whoops! You cannot tell by looking at the path whether the file is in the web!) This is the case that causes the most broken links! |
| on Internet site | Absolute
URL to a web site
src="http://www.jegsworks.com/mail.gif" |
| on a different hard disk or floppy disk |
Absolute path
src="file:///A:/my%20docs/web/carla2.jpg" |
![]()
Where you are:
JegsWorks >
Lessons > Web
Project 2: HTML Basics
HTML Code![]()
About HTML
What You Need
Code by Hand![]()
WYSIWYG
FrontPage/FPX![]()
Images in HTML
![]()
FrontPage
OR FPX![]()
Insert
Image
More
Images
Inline
Images
Replace
Image
Image
Link
Align & Space
Align
Images
Image
Issues
Save
Page
Edit/Convert
Image
Pictures
Bar
Publish
Web
Formatting![]()
Tables![]()
Print
Convert![]()
Summary
Quiz
Exercises
What Happens: Save to Another LocationWhen you save a page to a folder or web outside the current web, FrontPage has to figure out:
What makes the difference?
There are far too many combinations of these factors to make a neat chart. I tried! Just remember the rules above - get the images into the web before inserting them on a page and do all your moving and renaming from inside FrontPage (in the Folder List pane).
Publishing with FrontPage is the best way to keep everything in the new location just like it is in the original. The folder structure will be duplicated and images will be in the same places as before. But even then you can still run into trouble if you did not follow the rules above. FrontPage and Site DesignSome web designers recommend keeping your images in a separate folder from your HTML files. This practice likely started in the olden days when images had to be downloaded separately. It was convenient then to have all images in one folder. It's not particularly helpful these days. FrontPage will offer to put images from outside the web into the same folder as the page, so you might as well plan on that location. The exception is for images that are used on many pages in different folders, like company logos and navigation icons. It may be more convenient to put these in a common folder or in the root folder for the web.
Start with:
You will save your web page to a different folder on your Class floppy disk and then to a folder on the hard disk. FrontPage will save your images differently in these two cases. Note: If you have been saving your work to your hard disk instead of to a floppy disk, you will need to modify the directions. For the section Save to a Different Drive, you must use a physically different hard disk or some kind of removable media disk like a floppy or zip disk.
Create Folder - Same Disk
Create Folder - Different Disk
Save to Same Disk - Different FolderFolder at the same level or higherYou will first save the page to the folder family, which is a folder on the same disk as the original file.
SubfolderYou will now save the page to a subfolder of hector. The images won't be moved, so the paths will change again.
Save to a Different DriveNow you will save the page to the hard disk. This will be a bit different since the new location is on a different disk. FrontPage will offer to copy the images to the same folder. You will accept the offer for all but one of the images, just to see what will happen.
|
~~ 1 Cor. 10:31 ...whatever you do, do it all for the glory of God. ~~ |