opening a text document to show a .txt file through a browser link

Jukka K. Korpela jkorpela at cs.tut.fi
Sun Dec 29 10:56:32 EST 2002


"Nico Schuyt" <nschuyt at hotmail.com> wrote:

> A HTML page is a set of command lines.

That's your private definition. By the authoritative specifications, an 
HTML document is a text document containing markup that primarily 
indicates logical relationships, though there are some (deprecated) 
markup elements that suggest some particular presentational features. 
Besides, the division into lines is fairly irrelevant in HTML: with the 
exception of <pre> and <textarea> content, a line break is just white 
space, and any sequence of white space is equivalent to a single space 
character.

> When sent to the
> interpreter, the browser, the result is shown on the screen.

An HTML document might be processed by a visual browser, but that's 
just one possible way of using it, and the HTML markup does _not_ 
specify the rendering. You can easily see this by viewing an HTML 
document on a few browsers - or on a single browser with different 
settings.

More info: "Programs vs. markup,
or why HTML authoring is not programming", 
http://www.cs.tut.fi/~jkorpela/prog.html

F'ups trimmed.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html





More information about the Python-list mailing list