Forum Home
Press F1
 
Thread ID: 22815 2002-07-31 03:12:00 World's Simplest Website mark c (247) Press F1
Post ID Timestamp Content User
66970 2002-07-31 22:32:00 > THE SIMPLEST WEBSITE EVER (about:blank)

LOL. V Good. :)
mark c (247)
66971 2002-07-31 22:37:00 > of course, it doesn't HAVE to be in the same
> folder... you can use either a relative or absolute

Thanks for the tips. Brain turned to baked beans about relative and absolute pathnames, had to give it a rest. I understand the diff but still can't get it to work. Will keep bashing away.
>>>>>>> Cheers and have a sunny day like we are up here
mark c (247)
66972 2002-07-31 23:08:00 It's really easy Mark, once you get the hang of it .

Say you want to put in a pic of a library book and the image is called "book . gif" .

If you've got all your website files (the . html files) in the same folder then just upload book . gif to that folder . That's the easiest way but not good practice for large sites with lots of pages and graphics, but you don't need to worry about that yet .

On the pages that you want to put your "book . gif" graphic, insert this tag:

book . gif

where you want the pic to be and hey presto, there's your image of the library book . That is the most simplest tag and you can add other attributes such as no border and an "alt" description for people who browse with graphics off . The "alt" description is also what you see when you hover your mouse over a graphic, so your tag will then be like this:

book . gif

There are other attributes as well, such as left, center or right alignment .

That path is a relative one because it is in the same folder as the . html file . If it was an absolute path the tag would be like this:

. visp . co . nz/~rawenelibrary/book . gif" target="_blank">homepages . visp . co . nz

but you don't really want that, because if you move your pages to another site and the link names change, or the "book . gif" gets moved to another folder the link will no longer be correct and the image won't display .

So, all you need now are some graphics . . . .
Susan B (19)
66973 2002-07-31 23:12:00 Just thought of something: if you are having trouble getting a "jpeg" pic into your page, maybe you have named it wrongly? A file should be "book.jpg" not "book.jpeg".

Jpeg graphics are normally photographs with lots of colour and of a large size file-wise. If you have an image that is not a photo, use the .gif format instead.
Susan B (19)
66974 2002-07-31 23:18:00 Gee Susan B, that's great, thanks. mark c (247)
66975 2002-08-01 00:01:00 Absolutes v Relatives:

Abolute references refer to the machine and whole path to a file.
eg. http://pressf1.co.nz/

Relative references refer to a file relative to where you are now.

In the following example there are 3 folders. MySite is a parent folder, the other 2 are child folders.

MySite 123.htm
/ABC 456.htm
/DEF 789.htm


/ = Root Directory
./ (or nothing)= Current Directory
../ = Parent directory

To call page 456.htm from 123.htm the code is
="./ABC/456.htm" (or ="ABC/456.htm")

To call page 123.htm from 456.htm the code is:
="../123.htm" (go back a step to the parent folder and find the file)

To call page 789.htm from 456.htm the code is:
="../DEF/789.htm" (go back a step to the parent then forward again)

Always use relative references on your own site and absolute references to someone else's site.
Heather P (163)
66976 2002-08-10 00:32:00 Gee you folks have got it SO wrong!

The world's simplest website EVER is here (www.mis.co.nz)!
Greg S (201)
66977 2002-08-10 00:33:00 OOPS! I seem to have got the wrong end of the stick :( haha Greg S (201)
66978 2002-08-10 04:54:00 A really good description of the various bitmapped graphics formats (ie bmp, tif, gif and jpg) can be found at www.designer-info.com (www.designer-info.com) File Formats[/url].

You can use jpeg or jpg. It doesn't matter how you spell it as long as the filename matches the entry in the website. jpg is to maintain compatitbility with older machines using 12.3 filenames (eg windows 3.1) Older machines can't read the four character file extension, so it is best to stick with three (jpg) to maintain compatibility.


Jpegs are good for photo's with lots of colours, or images with lots of fades (ie when one colour slowly fades to another).

gifs are best for graphics with lots of continuous tone or few colours. (they work by only saving a few colour (max 256) and thus reducing the bit length of each pixel, and thus saving space (eg a graphic that is ONLY red blue and white - like the NZ flag - only has three colours, and so the bit-length can be 2 bits (you can actually have up to four colours with 2 bits). The gif then compresses itself using LZW compression to be even smaller.

Tif are best for graphics that are going to be printed. They also use LZW compression and so can get rather large if the graphic is a photo, but benifit for graphiics with large continous areas of a single colour that are intended to be printed.

So best or web is as Susan said (gif for graphics with few colours and large areas of the same colour like logos and diagrams, and jpeg for photos and pictures with many colours that are intermingled to give continuously changing colour).

Happy? Confused? Don't worry, you will suss it out eventually - I only just figured it out properly a few weeks ago - until then I didn't really know.

G P
Graham Petrie (449)
66979 2002-08-10 05:37:00 >>12.3 filenames

8.3 filenames
Heather P (163)
1 2 3 4