Subject: | |
From: | |
Reply To: | |
Date: | Wed, 13 Sep 2006 15:34:31 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
[log in to unmask] wrote:
>> When you write, you should change any "&" characters to "&" and any
>> "<" characters to "<"
>> In many cases you can get away without doing this-- browsers will not
>> treat these characters as special if they are followed by a spaces, for
>> example, but it's good practice to do it always.
>>
>
> I don't think that those rules apply to pre-formatted text ("" to ""). I
> believe that that text is passed through just as it is by all browsers, and that's
> a part of what makes writing standard flat file text to a web page so easy.
>
They do apply, save this to a file on your PC and load it in your browser:
<html>
<head><title>test</title></head>
<body>
<pre>
now is the time
Is 2 < 3 or is 2 > 2
Is A<B or is A>B?
Note that the bold goes on until </b></b>
Is A<B or is A>B?
Within <pre> blocks,
line breaks, leading and embedded spaces are honored
a fixed-width font is used
Entities are honored: Mun&ntilde;oz renders as Muñoz
I think that <a
href="http://www.w3.org/TR/html401/struct/text.html#edef-PRE"><a
href="http://www.w3.org/TR/html401/struct/text.html#edef-PRE">links
work</a></a>
We can have
<i><i>Italics</i></i>
<b><b>bold</b></b>
<u><u>underline</u></u>
<strike><strike>strikethrough</strike></strike>
<EM><EM>usually like <I></EM></EM>
<STRONG><STRONG>usually like <B></STRONG></STRONG>
<TT><TT>sort of redundant</TT></TT>
<DFN><DFN>Please define DFN</DFN></DFN>
<q><q>Q might be supported</q></q>
How about <span style="font-style: italic"><span
style="font-style: italic">span?</span></span>
</pre>
<form>
<pre>
Form tags are also valid:
<input type="text" name="foo">
<input type="submit">
</pre>
</form>
</body>
</html>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|