Original Usenet thread from alt.ascii-art, started 3 Aug 1995.
Answer: ASCII art on web pages
alt.ascii-art
· 2 messages · 3 Aug 1995 - 8 Aug 1995
Win Kang <eas...@rigel.oac.uci.edu> wrote: >How do i do this? do i simply write into the html file? what if some >error occurs b/c of existence of certain characters? what's a good >command to use? You need to do two things; 1. Use <pre> tag before the ASCII art starts, and </pre> after it finishes. This will force the browser to use a monospaced font. 2. Use the escape sequesces for characters like: & < > You can find them in HTML references. Also, you can use ASCII art in ALT tags, so that people using text based can see an ASCII pic where people using graphical browsers see a GIF. -- :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::'' ''::' ':::::: `:::::::::::::'.:::::::::::::::::::: ::::::::::::::::' :. : :. :::::: .::::::::::.:::':::::::::::::::::::: ::::::::::::::::: : :::. :::::::::::::..::::' '::: : :::::::::::: :::::::::::::::' :': "::' '"::::::::::::: :' '' ':::::::::::: ::::::::' : ' : :: .::::::::' ' .:::::: :::::::: : .:: .::. ::::' :::::::: ::::::::. .,. ::: ':::::::::::.: ' .:...::::::::: :::::::##### ::#### #### ::##### ::##### #### ##### #### ## :## :## : :::::## :::::## ## :## :## :## :## ## ## :## ## ## ## :## :## :: :::::#### ::## :: ###### :##### ::#### ## ##### : ## :## :## :## :## ::: :::::::## :## ::::## :## :## ## ::## : ## ## ## : ## :## :## :## :## :::: ::##### :::#### :## :## :## :## :##### #### ## :## : #### ::######## :::::: ::::::::::::::::::::::. ' '::::::. ' ' :::::.:.:.:.:.:::::::::::::::::: ::::::::::::::::::::::: : '::::::::. ' ,:::::::::: : :.:'::::::::::::::: :::::::::::::::::::::::: ' .::::::::: . :'::::::::::::::' ':::::::::::::: :::::::::::::::::::::::::'' .:::::::::: :' :'::::::::::::' ':::::::::::: ::::::::::::::::::::::::' .:::::::::::. .:::::::::::::::: :::::::::::: ::::::::::::::::::::::::. .::::::::::::::::::::::::::::::::.:::..::::::::::::: ::::::::::::::::::::::::'.:::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
bob...@wwa.com (Bob Allison) wrote: >Win Kang <eas...@rigel.oac.uci.edu> wrote: >>How do i do this? do i simply write into the html file? what if some >>error occurs b/c of existence of certain characters? what's a good >>command to use? > > You need to do two things; > > 1. Use <pre> tag before the ASCII art starts, and </pre> after it > finishes. This will force the browser to use a monospaced font. Ahhh, but if you're not going to use any other HTML tags in the text, use <XMP></XMP>: that way you don't have to worry about item #2 below, as it ignores any tags (I found this out the hard way). If you don't understand what I mean, look at the source on one of my pages (http://tardis.pacificue.edu/~browninb/stories) preferably one of the Deep Space Adder stores. I use <XMP></XMP> and don't have to escape for the special characters (and I have plenty of <'s and >'s). > 2. Use the escape sequesces for characters like: & < > > You can find them in HTML references. HTH -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ) Brandon Browning <bra...@nwnet.net> ( Student Technician voice (206) 562-3000 c[] NorthWestNet fax (206) 562-4822 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
//O\\
|\/\/\/| | | | | | (o)(o) C _) | ,___| | / /____\
|HHHHH/"\"\HHHHHHH| |HH`\|_.-)'|/'dP,H| |Hb.`\\_/_//'.oddH| |HHHb|`.\/\,'|HHHH| |HHHHHb/\/\/|HHHHH| |"""""""""""""""""| | |"" /\ \ / |"" | | |__/--\ \/ __| |
_________
/___ ___\
//@@@\ /@@@\\
\\@@@/ \@@@//
\___ " ___/
| - |
\_/ jrjc ______
/|_||_\`.__
( _ _ _\
=`-(_)--(_)-'
hjw .="=. _/.-.-.\_ ( ( o o ) ) |/ " \| \'---'/jgs /`"""`\\
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 1995 and are 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 one of the authors? 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.