HTML
1 - Tags
2 - Page Sections
3 - Format/Nesting
4 - Head Tags
5 - Body tags
6 - Text Decoration
7 - Lists
8 - Colour
9 - Source
10 - Images
11 - Links/Anchor Tag
12 - Special Charaters
13 - Tables
14 - Frames
|
Source - src=""
When you want to show an image on a page, link to another page or or any other type of file, the browser is going to need to as three questions:
- How do I get to it?
- What's the file's exact name?
- What am I looking for?
How do I get to it?
URL - User Resource Location.: Where is the file? Is it on another web site? Is it on this web site in a sub directory? The browser needs to know the address/source of the file so it can go fetch it back into the web browser.
Is the file on another site? then you will need the address or URL - User Resource Location. URLs are made of four parts.
- http:// = tells the browser you want a non secure public access sites
- www = world wide web
- . = separates the first half of the address from the domain name
- domain
- .extension = .com, .co.uk, .net, .org
- / = shows the location of the contents a folder
- folder = name of a subdirectory
- / = shows the location of the contents a folder
- file = name of the file you are importing to the browser. This name is often case sensitive.
- .extension = What type of file is it?
What's the file's exact name?
Case Sensitive - the name MUST match the way it appears on the file, which letters are uppercase or lowercase. If they don't match, then the browser wont be able to find the file. The browser will think it is looking for a different file.
| correct |
|
incorrect |
| members/index.html |
|
members/index.html |
| memebers/index.html |
|
Members/INDEX.HTML |
Computers are very literal - all answers are either a 0 or a 1. The browser can tell the difference between index.html and INDEX.HTML, and may think that they are two different files despite that they have the same name. This may seem silly and a bother, but can be very useful when you begin to build complicated applications.
What am I looking for?
What type of file is it? Is it an image file - .jpg, .gif; a web page - .html; a document - .doc, .pdf, .txt?
|