Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 24 Jan 1998.
Re: Ascii web page

Re: Ascii web page

Ilmari Karonen (ilt...@sci.fi) wrote:
: Anyway, here's a quick list of different tag types. (far from complete)

: Text-level (embedded in text)
:   CLosed (may only contain text and text-level tags)
:     <EM>, <STRONG>, <CITE>, <CODE>, <VAR>, <DFN>, <Q>, <B>, <I>, <U>,
:     <BLINK>, <BIG>, <SMALL>, <SUB>, <SUP>, <TT>, <FONT>, <SPAN>, <A>
:   Unclosed
:     <IMG>, <INPUT>, <BR>, <APPLET>, <OBJECT>, <BUTTON>, <IFRAME>
: Block-level (define a block ie. paragraph of text, group of tags etc.)
:   Pure text (may only contain text, no tags whatsoever)
:     <TEXTAREA>
:   Textual (may only contain text and text-level tags)
:     <H1> - <H7>, <P> (closing tag may be omitted), <PRE>, <ADDRESS>,
:     <DT>, <CAPTION>
:   Structural (define a group of tags, may not contain plain text)
:     <UL>, <OL>, <DL>, <TABLE>, <TR>
:   Mixed-content (may contain text or block-level tags)
:     <BODY>, <DIV>, <LI>, <DD>, <TH>, <TD>, <CENTER>, <FORM>,
:     <BLOCKQUOTE>
:   Empty
:     <HR>, <COL>

Well, that was a quick list indeed, as I was in a hurry, and it seems some
of my examples were misplaced. In any case, the list, which I corrected a
bit, is just a crude simplification. Don't trust me, trust the W3C at
http://www.w3.org/

I was also about to say the you could put <FONT> inside <PRE>, but then I
found this gem from the HTML 4.0 declaration:

<!ENTITY % pre.exclusion "IMG|OBJECT|APPLET|BIG|SMALL|SUB|SUP|FONT|BASEFONT">

What this means is that the tags listed above are not allowed inside <PRE>,
supposedly to keep the columns aligned. I'd assume using them won't break
anything, but they might get ignored. This particular list has been debated
somewhat, and I believe most browsers allow these.

But why use <FONT>, when there's an even better way - CSS. Admittedly only
the latest browsers support it, but it won't do any harm:

<HEAD>
  <TITLE>Example of using CSS with ascii art</TITLE>
  <STYLE type="text/css"><!--
PRE.asciiart {
 font-family: "Topaz New", "Topaz", "Lucida Console", "Monaco", "Terminal",
  "Courier", "Courier New", "Fixedsys", monospaced;
 line-height: 100%; /* no gaps between lines */
 font-weight: bold; /* no need for ugly B tags */
}
  --></STYLE>
</HEAD>
</BODY>
  <H1>Setting a better font for ascii art with style sheets</H1>
<PRE class=asciiart>
      ,zxs.
     /XFAtX\ 
    jyZj^iNvi
    f/'_ _`\t
    i("6,6"`l
    j:. _, ||
    |i.._. ;j
    i|`:_,'|(
   ;l(|.  /)|\.
 .-"(\)"-";(["`-.
     |)    ))
     (     ' itz
</PRE>
</BODY>

--  __,,,------._
 ,-/|            `-.  Ilmari Karonen (ilt...@sci.fi) ^ All opinions expressed
/,  '\,     `.  ,|"-;;.__ http://www.sci.fi/~iltzu/ | in this message are my
/ ' 4(_,-_,-"_,/.'   `'--' ,------------------------' own. If you want me to
"`-(_,-"" `-' (,' itz      | make some for you too, you should pay for them!

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,8bca074f44130a1d
X-Google-Attributes: gidf996b,public
From: ilt...@sci.fi (Ilmari Karonen)
Subject: Re: Ascii web page
Date: 1998/01/24
Message-ID: <6acub4$e73$1...@tron.sci.fi>#1/1
X-Deja-AN: 319269818
References: <34C...@netgsi.com> <mb0dIJA2$Ow0...@xemu.demon.co.uk> <#Ifypr7I9GA.176@upnetnews04> <01bd2459$2a8217a0$3e5abcc3@atkins> <34C...@freent.toronto.on.ca> <01bd2834$1691b460$LocalHost@atkins> <6ab5uf$aur$1...@tron.sci.fi>
Distribution: world
Organization: (dis)Order of the Holy Spoon (or whatever)
Newsgroups: alt.ascii-art
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 1998 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post