HP3000-L Archives

September 2006, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Ken Hirsch <[log in to unmask]>
Reply To:
Ken Hirsch <[log in to unmask]>
Date:
Wed, 13 Sep 2006 15:34:31 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
[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 &lt;/b&gt;</b>
Is A&lt;B or is A&gt;B?
  Within &lt;pre&gt; blocks,
    line breaks, leading and     embedded spaces are honored
    a fixed-width font is used
Entities are honored: Mun&amp;ntilde;oz renders as Mu&ntilde;oz
I think that &lt;a 
href="http://www.w3.org/TR/html401/struct/text.html#edef-PRE"&gt;<a 
href="http://www.w3.org/TR/html401/struct/text.html#edef-PRE">links 
work</a>&lt;/a&gt;
We can have
&lt;i&gt;<i>Italics</i>&lt;/i&gt;
&lt;b&gt;<b>bold</b>&lt;/b&gt;
&lt;u&gt;<u>underline</u>&lt;/u&gt;
&lt;strike&gt;<strike>strikethrough</strike>&lt;/strike&gt;
&lt;EM&gt;<EM>usually like &lt;I&gt;</EM>&lt;/EM&gt;
&lt;STRONG&gt;<STRONG>usually like &lt;B&gt;</STRONG>&lt;/STRONG&gt;
&lt;TT&gt;<TT>sort of redundant</TT>&lt;/TT&gt;
&lt;DFN&gt;<DFN>Please define DFN</DFN>&lt;/DFN&gt;
&lt;q&gt;<q>Q might be supported</q>&lt;/q&gt;
How about &lt;span style="font-style: italic"&gt;<span 
style="font-style: italic">span?</span>&lt;/span&gt;
</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 *

ATOM RSS1 RSS2