|
CGI scripts |
|
System |
|
Java |
|
Bir web sayfasındaki hyper text link, ya aynı sayfada önceden belirlenmiş bir bölüme ya da başka bir URL adresine gidişi sağlar. Aynı sayfada bir yere gidebilmesi için, o yerin önceden işaretlenmiş olması gerekir. İşaretleme işlemi iki yöntemle yapılabilir:
| Görüntü | HTML Dökümanı (Program) |
|---|---|
| İşaretciyi_çağrıştıran_deyim | <A NAME="işaretcinin_adi"> İşaretciyi_çağrıştıran_deyim </A> |
Web sayfasının herhangi bir yerinden, önceden işaret edilen bir yere sıçramak için ANCHOR damgasının HREF parametresi kullanılır.
| Görüntü | HTML Dökümanı (Program) |
|---|---|
| İşaretciyi_çağrıştıran_deyim | <A HREF="#işaretcinin_adi"> İşaretciyi_çağrıştıran_deyim </A> |
İşaretcinin_adı'nın önündeki # simgesi gereklidir. Çünkü bu simge, tarayıcıya, NAME ile işaretlenmiş bir noktaya sıçraması gerektiği bildirir.
| Aynı makinadaki döküman ../yol/dosya.html |
Başka makinadaki "url" dökümanın URL adresi |
| <A HREF="file.html"> Name </A> | <A HREF="http://sunucu/dosya.html"> Name </A> |
NAME ile işaretlenmiş bir bölgeye sıçramak için;
| Hyper text link to the file file.html at point mark |
Hyper text link to the file file.html at point mark held on another machine using an URL |
| <A HREF="file.html#mark"> Name </A> | <A HREF="http://host/file.html#mark"> Name </A> |
|
Unix based web servers allow a convenient shortcut to accessing files placed in the directory public_html in the user's home directory. For example, the file home.html placed in the directory public_html in mas's home directory on the server machine puck.it.brighton.ac.uk, can be accessed with the URL http://www.it.brighton.ac.uk/~mas/home.html
In creating the URL the characters space, =, +, <, >, %, ", /, and ? should not be used. If you do need to include these characters then represent them by the % symbol followed by the hexadecimal value of the character. The space character however, can also be represented by the character +. For example, http://www.it.brighton.ac.uk/%25.html represents the URL http://www.it.brighton.ac.uk/%.html.
Other access protocols can be specified by an URL. For example, to access files via the FTP (File Transfer Protocol) an URL of the form:
| ftp://ftp.brighton.ac.uk/pub/mas/ada95 |
is used. This specifies that a link to the file/directory mas/ada95 on the machine ftp.brighton.ac.uk should be made. If mas/ada95 is a directory the viewer is presented with a list of files in the directory, otherwise the file will be displayed/transferred to you.
The full specification for an URL is:
| Protocol | Format | Notes |
|---|---|---|
| HTTP | http://host[:port]/path | - |
| FTP | ftp://[username[:password]@host/path | If no username is specified the user anonymous is used. |
| Gopher | gopher://host[:port]/[type[item]] | - |