Reply to Re: Html page without any Html tag in its source

Your name:

Reply:


Posted by Benjamin Niemann on 07/26/07 08:05

lovecreatesbea...@gmail.com wrote:

> On Jul 26, 9:43 am, "asdf" <a...@asdf.com> wrote:
>> "lovecreatesbea...@gmail.com" <lovecreatesbea...@gmail.com> wrote in
>> message
>>
>> news:1185413830.451217.154570@j4g2000prf.googlegroups.com...
>>
>> >I don't see any Html tag in some Html pages, for example, this one:
>>
>> >http://ftp.gnu.org/README
>>
>> > How does it make paragraphs, newlines ... without <P>, <BR> ...
>> > respectively? And how does it present < and > without &lt; and &gt; ?
>> > Does it use some CSS to achieve that?
>>
>> > Thanks
>>
>> Answer:
>>
>> It's not an html page. It's a text document on an FTP server.
>>
>> Newlines are probably the carriage return/line feed character. '<' is an
>> ascii character, so it's valid text anyway.
>>
>> No smoke or mirrors, no CSS :))
>
> Thanks asdf and Sherm Pendley.
>
> Does FTP server present any file (including plain text file) same as
> WEB server presents Html files? Can it present graph, Forms,
> tables ...?

FTP and HTTP work a bit differently.
With HTTP the server sends the file itself plus some metadata including what
kind of file it is (e.g. HTML, plain text, MP3, ...), so the client knows
how to handle it.
FTP only send the data contained in the file without additional metadata.
The client has to figure out what to do with the data, usually by looking
at the filename, the data or asking the user.

If both processes yield the same result (e.g. using the HTML renderer to
display a given document), it does not make a difference, if FTP or HTTP is
used.

--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://pink.odahoda.de/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация