You are here: Re: What's wrong with this HTML (fails validation) ? « HTML « IT news, forums, messages
Re: What's wrong with this HTML (fails validation) ?

Posted by John Hosking on 02/18/07 23:15

robert maas, see http://tinyurl.com/uh3t wrote:
>>From: John Hosking <J...@DELETE.Hosking.name.INVALID>

>>with what I presume to be 5 1/4" single-sided floppy drives
>
> No, never had one of those pieces of crap. You are deliberately being
> derogatory/insulting at this point.

Well, I was deliberately exaggerating. You got upset with Jukka, too,
although I didn't think he meant to insult your, uh, equipment. Don't be
so sensitive; some poor saps in Africa have lots worse connectivity and
have to make do as best they can. No insult deserved or meant.

> You seem to be insistant that I do something that is
> beyond my present means, namely have a more expensive computer
> system than I can afford, and use it to develop Web pages with
> interactive use of IE/Mozilla/NetScape during development, and
> won't be happy until you see that blood dripping out of that
> turnip.

I don't insist anything. Your finances are your business. I do suggest
you not worry about vertical spacing in various browsers until you are
in a position to try them out and compare results.

> So if you want to include code snippets in the middle of
> running text, how do you do it?

Using <code>.

> For example, if you wanted an effect somewhat like this:
>
> Now once you somehow get lisp "interpretor" started, it'll probably
> print out some banner identifying what version it is, then it'll enter
> the read-eval-print loop. So you just type an integer literal on one
> line, for example 42, and then press ENTER or RETURN, whatever the key
> is on your computer for finishing lines of input, and lisp will print
> that number 42 on a new line and then wait for further input. So
> suppose you enter two numbers, with a space between them, such as
> 42 69
> on a single line of input? Lisp will read the 42, and print it out
> on a new line. Then lisp will read the 69 and print it out on another
> new line. Then lisp will see you haven't typed any more input, so lisp
> will wait for new input. If you have access to lisp, you should try
> that right now.
>

<p>Now once you... So suppose you enter two numbers, with a space
between them, such as... <code>42 69 </code>on a single line of input?
....right now.</p>

Others have addressed this (days ago) better than I will here, but the
above is where I'd start. I can style the <code> element with whatever
font, and as a block, with some spacing fore and aft, or inline with
<br>s slipped into the HTML.

> Here's another example, a long transcript (only part
> shown here) with running commentary alternating with the
> transcript. From time to time when the topic changes there's a new
> paragraph started, but so long as the topic is the same it should
> be just one big paragraph with snippets of transcript set out at
> various places in the middle:

Well, the first thing here, if you're trying for any semantic
correctness, is to mark your paragraphs as <p>. Right now, you've just
got anonymous text floating in your <body> (and that's *got* to be
uncomfortable ;-) ). Within the <p> elements then, mark up some <code>
(as Jonathan explained), or use <div> elements (as Jukka suggested), or
use <pre> and style it for those who can appreciate such things.


--
John

 

Navigation:

[Reply to this 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

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