Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 26 Apr 1998.
[SUGGESTION] Amendment to a.a-a FAQ re: HTML

[SUGGESTION] Amendment to a.a-a FAQ re: HTML

There has recently been numerous discussions in this newsgroup about
publishing ascii art on the Web. The following questions have been
asked several times, and should therefore IMHO be added to the FAQ.

I hope that these FAQ entries will not only help new artists make
their work available on the WWW, but will also reduce the number of
such questions - and the apparently flammable and somewhat off-topic
threads which they often start - in this newsgroup.

The answers which I have provided are intended to be a reasonable
compromise between brevity and thoroughness. They answer the question
and mention potential caveats, but do not offer any more extensive
explanations which IMHO belong to other newsgroups. Any suggestions
and/or improvements are welcome.

I felt that in a matter like this it would be very helpful to provide
examples, despite the extra space they take. I have used as an example
an eagle by Shanaka Dias - I hope he does not object.

---(cut here)---------------------------------------------------------

 Q: How can I put ascii art on a WWW page?

 A: To embed ascii art in HTML, first replace all occurrences of "&" in the
    picture with "&amp;" and of "<" with "&lt;". Then put the HTML tag
    <PRE> before the picture and </PRE> after it.

 Original:
      ____     _____
     /  \  _.-'_.-'
     \  _\/   _/
   ___)/   __<
  <'-;:\_  _\
      '; \_\
       >/-,\
     ""`  |_\ snd
 HTML version:
<PRE>
      ____     _____
     /  \  _.-'_.-'
     \  _\/   _/
   ___)/   __&lt;
  &lt;'-;:\_  _\
      '; \_\
       >/-,\
     ""`  |_\ snd
</PRE>

 Q: How can I change the font in which ascii art is shown on my WWW page?

 A: There are several ways. The recommended, though not yet very widely
    supported, way is to use Style Sheets. Just add the following in the
    HEAD section of your page:

<STYLE type="text/css"><!--
  PRE { font-family: "Best font", "2nd best font", "etc.", monospaced; }
--></STYLE>

    You can list as many fonts as you like, just keep "monospaced" as the
    last one. Note: Strictly speaking specifying a font is not pure ascii
    art. However this _is_ a FAQ, and as long as you don't use proportional
    fonts the picture will still be viewable as pure ascii. Remember NOT to
    post HTML in the newsgroup.

---(cut here)---------------------------------------------------------

-- 
Ilmari Karonen (ilt...@sci.fi)
http://www.sci.fi/~iltzu/

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,293e46f3c3075b56,start
X-Google-Attributes: gidf996b,public
From: ilt...@sci.fi (Ilmari Karonen)
Subject: [SUGGESTION] Amendment to a.a-a FAQ re: HTML
Date: 1998/04/26
Message-ID: <6hvhk7$5p0$1...@tron.sci.fi>#1/1
X-Deja-AN: 347822014
Summary: Two suggested new entries to the alt.ascii-art FAQ regarding HTML.
Keywords: ASCII art, World Wide Web, Frequently Asked Questions
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