|
Posted by Els on 07/30/06 21:10
Nico Schuyt wrote:
>>> a. The 'somewhere' in the href is not a valid location
>
>> ... , "somewhere" could be just as valid as "somewhere.html". Not
>> everybody uses file extensions on their webpages.
>
> That's new for me.
That's the good thing about Usenet - you always learn something new
:-)
> How could "somewhere" be a valid location? It could be
> about anything like somewhere.htm, s-.html, s-jpg etc.
Exactly.
> IMO only somewhere/ is valid.
Valid, yes. But it wouldn't be the same thing:
http://example.com/somewhere/
http://example.com/somewhere
The first one points to the index file (if there is any) of the
directory with the name 'somewhere'.
The second one points to a file by the name 'somewhere' in the root
directory. Most servers though, are set up to respond to the second
one as if there was a trailing slash, as soon as it detects that there
is no file by the name of "somewhere".
> You can define files like index.htm or index.php as defaults. Is it also
> possible to set an extension like .htm als default??
I can even set a file like foo.xyz as default. It's only a line in the
server's configuration.
>>> Thus, a sentence with an example could be "Use normal links like <a
>>> href="blah.html">blah</a>".
>
>> I doubt that in that example "blah" indicates a destination that is in
>> fact a normal link. Usually links point to pages or images or files,
>> not to links.
>
> Ehhh, the 'blah' is not the destination but the anchor text (=the visible
> hyperlinked text on the page; to indicate the subject matter of the page
> that it links to).
Means it's not a good example :P
--
Els http://locusmeus.com/
Navigation:
[Reply to this message]
|