Somersault's HTML Guide: Difference between revisions
No edit summary |
m Protected "Somersault's HTML Guide" [edit=sysop:move=sysop] |
||
(33 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
==Intro== | ==Intro== | ||
This | This page was a sub-page of ''[[Somersault's Tech Forum]]''. It was last updated on June 9, 2009 and is presented here as a useful guide to using HTML on web-boards. Somersault was a long time participant on [[BoyChat]] and well known within the [[boylove community]]. | ||
==Page== | |||
{{Box1 start}} | |||
{{Background |image=back13 |marge=100 |size=25% |1= | |||
<center> | <center> | ||
[[Image:Guides (Somersault's HTML Guide).gif]]<br> | [[Image:Guides (Somersault's HTML Guide).gif]]<br> | ||
<font size="+3" color="#ff6600">Using HTML in Chat Board Messages</font> | <font size="+3" color="#ff6600">Using HTML in Chat Board Messages</font> | ||
</center><br> | </center><br> | ||
---- | |||
<sup>''This page last updated June 9, 2009''</sup> | <sup>''This page last updated June 9, 2009''</sup> | ||
Line 17: | Line 24: | ||
Note: Click on the hand [[Image:Handup(Somersault's HTML Guide).gif]] to return to the Contents from anywhere in the document.<span id="hand"></span> | Note: Click on the hand [[Image:Handup(Somersault's HTML Guide).gif]] to return to the Contents from anywhere in the document.<span id="hand"></span> | ||
[[#Introduction|Introduction]] | |||
:[[#HTML Post (Opera widget)|HTML Post (Opera widget)]] | |||
[[#Preparing your text|Preparing your text]] | |||
:[[#Common guidelines|Common guidelines]] | |||
:[[#Don't Lose It!|Don't Lose It!]] | |||
:[[#Composing offline|Composing offline]] | |||
:[[#Preview|Preview]] | |||
[[#Overall appearance|Overall appearance]] | |||
:[[#Background|Background]] | |||
:[[#Text|Text]] | |||
: [[#Text size|Text size]] | |||
: [[#Text color|Text color]] | |||
: [[#Typeface|Typeface]] | |||
:[[#Horizontal lines|Horizontal lines]] | |||
[[#Hyperlinks|Hyperlinks]] | |||
[[#Emphasis|Emphasis]] | |||
[[#Lists|Lists]] | |||
[[#Centering and Indenting|Centering and Indenting]] | |||
< | :[[#Centering|Centering]] | ||
</ | :[[#Indenting|Indenting]] | ||
[[#Formatted text|Formatted text]] | |||
[[#Summary|Summary]] | |||
<span id="Introduction"></span> | |||
==Introduction<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Introduction<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
Line 66: | Line 78: | ||
very limited application.''' | very limited application.''' | ||
'' | '' | ||
<span id="HTML Post (Opera widget)"></span> | |||
==HTML Post (Opera widget)<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==HTML Post (Opera widget)<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 74: | Line 87: | ||
You'll need to be using Opera 9.whatever, which you can find at [http://www.opera.com/ Opera] and once you've installed this (very nice) browser, you can use the menu item to find widgets, and click and install HTML Post. | You'll need to be using Opera 9.whatever, which you can find at [http://www.opera.com/ Opera] and once you've installed this (very nice) browser, you can use the menu item to find widgets, and click and install HTML Post. | ||
<span id="Preparing your text"></span> | |||
==Preparing your text<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Preparing your text<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 83: | Line 96: | ||
online, or you can use an offline editor and then cut and paste. I do both, | online, or you can use an offline editor and then cut and paste. I do both, | ||
depending on the length of the post. | depending on the length of the post. | ||
<span id="Common guidelines"></span> | |||
==Common guidelines<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Common guidelines<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
No matter how you prepare the text, there are a few things you should know. | No matter how you prepare the text, there are a few things you should know. | ||
First of all, just type your text normally without pressing ENTER needlessly. | First of all, just type your text normally without pressing ENTER needlessly. | ||
Line 117: | Line 130: | ||
==Don't Lose It!<imagemap>Image:Handup(Somersault's HTML Guide).gif| | **''This ONLY works on chat boards. Normally, HTML completely ignores "new line" (i.e. Enter) characters. However, the chat board script converts these to <br> tags which are not ignored by browsers.'' | ||
<span id="Don't Lose It!"></span> | |||
===Don't Lose It!<imagemap>Image:Handup(Somersault's HTML Guide).gif| | |||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
From time to time you'll see howls on the chat board from people who have spent ages composing a message, then lost it. This seems to happen in several ways: | From time to time you'll see howls on the chat board from people who have spent ages composing a message, then lost it. This seems to happen in several ways: | ||
Line 139: | Line 150: | ||
The solution is simple; as soon as you finish your text, before you do anything else, select all the text (ctrl-A in Windows), then copy it to the clipboard (ctrl-C in Windows). If you lose everything, just paste it back into the text entry field. | The solution is simple; as soon as you finish your text, before you do anything else, select all the text (ctrl-A in Windows), then copy it to the clipboard (ctrl-C in Windows). If you lose everything, just paste it back into the text entry field. | ||
<span id="Composing offline"></span> | |||
==Composing offline<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Composing offline<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
The only trick here is to choose a suitable editor. You want to use one that | The only trick here is to choose a suitable editor. You want to use one that | ||
Line 164: | Line 175: | ||
you can't use them with impunity. This is because the script file of the chat | you can't use them with impunity. This is because the script file of the chat | ||
board converts CR's to line breaks when preparing your message.'' | board converts CR's to line breaks when preparing your message.'' | ||
<span id="Preview"></span> | |||
==Preview<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Preview<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
If you are using HTML tags it is important to preview your message before | If you are using HTML tags it is important to preview your message before | ||
Line 174: | Line 185: | ||
and fix them before you suffer the embarrassment and horror of posting a message | and fix them before you suffer the embarrassment and horror of posting a message | ||
with a really dumb mistake in it (we'll leave the really dumb CONTENT to you). | with a really dumb mistake in it (we'll leave the really dumb CONTENT to you). | ||
<span id="Overall appearance"></span> | |||
==Overall Appearance<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Overall Appearance<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 181: | Line 192: | ||
While HTML allows you to set background colors and images, and control the use | While HTML allows you to set background colors and images, and control the use | ||
of fonts, you are quite limited in chat board messages. | of fonts, you are quite limited in chat board messages. | ||
<span id="Background"></span> | |||
==Background<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Background<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
The background color or background image used is defined in the HTML | The background color or background image used is defined in the HTML | ||
<body> tag. According to the rules you can only have | <body> tag. According to the rules you can only have '''one''' body tag | ||
in a document. Since the chat board script already has put the | in a document. Since the chat board script already has put the '''mandatory''' | ||
body tag in your document, | body tag in your document, '''you can not add another one.''' If you do, it | ||
won't cause an error (HTML never causes fatal errors); it will simply be ignored | won't cause an error (HTML never causes fatal errors); it will simply be ignored | ||
with most browsers. This means that you can't reliably set the background color | with most browsers. This means that you can't reliably set the background color | ||
Line 201: | Line 212: | ||
color to be able to read the message. Just because some browsers actually respond to the second <body> tag doesn't make it right: it is NOT part of the HTML rules. Solution? Don't use light colored text. | color to be able to read the message. Just because some browsers actually respond to the second <body> tag doesn't make it right: it is NOT part of the HTML rules. Solution? Don't use light colored text. | ||
Alternately, you can put your text in a | Alternately, you can put your text in a '''table''' and set the background color to whatever you like. Beware, though; the use of tables in forum posts is tricky, and you are likely to end up with a lot of vertical blank space at the top of your message. If this happens, use a raw text editor and delete all the Enter characters within the table cells. | ||
'''''The use of tables is beyond the present scope of this document, but may be covered in later revisions.''''' | '''''The use of tables is beyond the present scope of this document, but may be covered in later revisions.''''' | ||
==Text<imagemap>Image:Handup(Somersault's HTML Guide).gif| | <span id="Text"></span> | ||
===Text<imagemap>Image:Handup(Somersault's HTML Guide).gif| | |||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
You can control the size, typeface and color of the text in a message. These are | You can control the size, typeface and color of the text in a message. These are | ||
all done using the <font> tag. For example, the line: | all done using the <font> tag. For example, the line: | ||
Line 223: | Line 236: | ||
Note that you must always use the </font> tag to close the font and | Note that you must always use the </font> tag to close the font and | ||
return to normal. Let's look at each of these in turn. | return to normal. Let's look at each of these in turn. | ||
<span id="Text size"></span> | |||
==Text size<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Text size<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
Size can be controlled with the <font size=...> tag. Size can be | Size can be controlled with the <font size=...> tag. Size can be | ||
Line 262: | Line 275: | ||
</tr></table> | </tr></table> | ||
</center> | </center> | ||
<span id="Text color"></span> | |||
==Text Color<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Text Color<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
Text color can be controlled with the font command too. The syntax is | Text color can be controlled with the font command too. The syntax is | ||
<font color=" | <font color="''cccc''"> where ''cccc'' is the color specification. | ||
''cccc'' may be a color name (keep it SIMPLE); most browsers (not all) will | |||
recognize names like green, red, blue, light green, etc. It may also be a | recognize names like green, red, blue, light green, etc. It may also be a | ||
numeric color, in the form #RRGGBB where RR, GG and BB are the red, green and | numeric color, in the form #RRGGBB where RR, GG and BB are the red, green and | ||
Line 290: | Line 303: | ||
:<font color="#ff6600">This is a line of orange text.</font> | :<font color="#ff6600">This is a line of orange text.</font> | ||
<span id="Typeface"></span> | |||
==Typeface<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Typeface<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
This is a tricky one. Browsers allow the | This is a tricky one. Browsers allow the ''face'' to be specified as part of the font command. But you <b>must</b> remember one thing; you can specify any typeface you want, but unless the person viewing your post has the same face on his computer, it won't work and he'll just see the default. Obviously if you want it to work for a majority of users, you should choose typefaces that most people have installed. These include (for PCs): | ||
Line 321: | Line 334: | ||
'''Warning! The Microsoft "Webdings" font doesn't work at all in some browsers, even if it is installed on the computer being used to view the chat board. For this reason it's advisable not to use this font in posts.''' | '''Warning! The Microsoft "Webdings" font doesn't work at all in some browsers, even if it is installed on the computer being used to view the chat board. For this reason it's advisable not to use this font in posts.''' | ||
<span id="Horizontal lines"></span> | |||
==Horizontal Lines<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Horizontal Lines<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>=== | ||
You can place a horizontal line in your message by using the <hr> tag. | You can place a horizontal line in your message by using the <hr> tag. | ||
You may want to put an extra ENTER above and below it to space it out a bit. | You may want to put an extra ENTER above and below it to space it out a bit. | ||
<hr> | <hr> | ||
<span id="Hyperlinks"></span> | |||
==Hyperlinks<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Hyperlinks<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>== | ||
You can place | You can place ''hyperlinks'' to other documents in your message in two ways: | ||
Line 345: | Line 358: | ||
:<a href="http://www.somersaultforums.org/guides">Somersault's Guides</a> | NOTE: This URL is defunct.:<a href="http://www.somersaultforums.org/guides">Somersault's Guides</a> | ||
Archive.org link: [http://web.archive.org/web/20081219144342/http://somersaultforums.org/guides/ Somersault's Guides] | |||
That will end up looking simply like [http://www.somersaultforums.org Somersault's Guides] in your text. | That will end up looking simply like [http://www.somersaultforums.org Somersault's Guides] in your text. | ||
Line 355: | Line 370: | ||
:1 Open another browser window (ctrl-N in most browsers). | :1 Open another browser window (ctrl-N in most browsers). | ||
:2 Using the second window, find the message you want to point to. | :2 Using the second window, find the message you want to point to. | ||
:3 Highlight the URL of the message (in the | :3 Highlight the URL of the message (in the ''Location'' box at the top of your browser window. | ||
:4 Press ctrl-C to copy this URL. | :4 Press ctrl-C to copy this URL. | ||
:5 Close the second browser window (if you want). | :5 Close the second browser window (if you want). | ||
Line 364: | Line 379: | ||
<table border=1 width="80%" align="center" style="background:#ffff00;" cellpadding="5"><tr><td> | <table border=1 width="80%" align="center" style="background:#ffff00;" cellpadding="5"><tr><td> | ||
Please, please, if you're putting a link with a long URL in your post, do | Please, please, if you're putting a link with a long URL in your post, do '''not''' include the URL as the text to be displayed! Use a short description, instead. Since URLs don't include spaces, if they're longer than the reader's screen width, some browsers will widen the entire post to match the maximum length. The poor reader then has to scroll left-right left-right to read your post. If I come across such a post, I don't even bother reading it. | ||
</td></tr></table> | </td></tr></table> | ||
<span id="Emphasis"></span> | |||
==Emphasis<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Emphasis<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 400: | Line 415: | ||
If you don't see the above text blink, blinking may be disabled in your browser, or your browser (e.g. Opera) may not support that tag. | If you don't see the above text blink, blinking may be disabled in your browser, or your browser (e.g. Opera) may not support that tag. | ||
<span id="Lists"></span> | |||
==Lists<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Lists<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 425: | Line 440: | ||
The <ol> and <li> are placed on the same line to avoid extra CR's, which the script turns into blank lines. | The <ol> and <li> are placed on the same line to avoid extra CR's, which the script turns into blank lines. | ||
Note that the <li> tag is a | Note that the <li> tag is a ''list item''. Make an unordered list | ||
like this: | like this: | ||
Line 450: | Line 465: | ||
Otherwise you'll end up with double spacing above and below the list. | Otherwise you'll end up with double spacing above and below the list. | ||
<span id="Centering and Indenting"></span> | |||
==Centering and Indenting<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Centering and Indenting<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
desc none | desc none | ||
</imagemap>== | </imagemap>== | ||
<span id="Centering"></span> | |||
===Centering<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Centering<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 473: | Line 489: | ||
Don't forget to close this tag with </center> or everything following it | Don't forget to close this tag with </center> or everything following it | ||
on the board (or at least in your message) may end up centered. | on the board (or at least in your message) may end up centered. | ||
<span id="Indenting"></span> | |||
===Indenting<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ===Indenting<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 510: | Line 526: | ||
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This paragraph will show up with the first line indented if your browser supports the &nbsp; character. If not, you will see five &nbsp;'s at the beginning of the first line. Remember that it is the | :&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This paragraph will show up with the first line indented if your browser supports the &nbsp; character. If not, you will see five &nbsp;'s at the beginning of the first line. Remember that it is the ''other guy's'' browser that does the interpreting, not yours. | ||
should result in | should result in | ||
: This paragraph will show up with the first line indented if your browser supports the &nbsp; character. If not, you will see five &nbsp;'s at the beginning of the first line. Remember that it is the ''other guy's'' browser that does the interpreting, not yours. | |||
<span id="Formatted text"></span> | |||
==Formatted Text<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Formatted Text<imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 526: | Line 542: | ||
<font face="courier, courier new">To fix this we will need: | <font face="courier, courier new">To fix this we will need: | ||
- a rubber ball | - a rubber ball | ||
:i. to fill the hole | :i. to fill the hole | ||
Line 552: | Line 569: | ||
Note: The use of both "Courier" and "Courier New" accommodates non-Windows viewers who don't have the Courier New font installed. | Note: The use of both "Courier" and "Courier New" accommodates non-Windows viewers who don't have the Courier New font installed. | ||
<span id="Summary"></span> | |||
==Summary <imagemap>Image:Handup(Somersault's HTML Guide).gif| | ==Summary <imagemap>Image:Handup(Somersault's HTML Guide).gif| | ||
default [[#hand]] | default [[#hand]] | ||
Line 578: | Line 594: | ||
The only tags you do not need to close* are: | The only tags you do not need to close* are: | ||
:*<p>** | |||
:*<br>** | |||
:*<li> | |||
:*<hr> | |||
* Actually, the HTML standard requires all tags to be closed, but most authors, authoring programs and browsers don't close the ones listed. | * Actually, the HTML standard requires all tags to be closed, but most authors, authoring programs and browsers don't close the ones listed. | ||
Line 592: | Line 608: | ||
<center> | <center> | ||
''Comments? Send email to Somersault'' | |||
or go to [http://web.archive.org/web/20100414051329/http://somersaultforums.org/techforum/ Somersault's Tech Forum.] | |||
<font size="+3">[http://web.archive.org/web/20100212154148/http://somersaultforums.org/guides/index.html Go back to the index page.]</font> | |||
</center> | </center> | ||
<BR><hr ALIGN="LEFT" WIDTH="300" SIZE="1"> | <BR><hr ALIGN="LEFT" WIDTH="300" SIZE="1">}} | ||
{{boxes end}} | {{boxes end}} | ||
==External links== | ==External links== | ||
Line 602: | Line 620: | ||
[[Category:Technology]] | [[Category:Technology]] | ||
[[Category:Online history]] |
Latest revision as of 12:13, 20 March 2014
Intro
This page was a sub-page of Somersault's Tech Forum. It was last updated on June 9, 2009 and is presented here as a useful guide to using HTML on web-boards. Somersault was a long time participant on BoyChat and well known within the boylove community.
Page
This page last updated June 9, 2009 This document has been prepared as a response to inquiries about using HTML on chat boards, particularly Somersault's Lounge, Tech Forum and other similar boards. ContentsNote: Click on the hand to return to the Contents from anywhere in the document.
IntroductionHTML (HyperText Markup Language) allows some fairly complex text formatting. When you view a message or response on a chat board, you are viewing an HTML document. HTML "tags" control how the message will look on your screen. That said, it's important to note that the message will look a little different on each individual's screen, because:
This last can be very important in some cases, though the HTML used by the chatboards is quite simple and will be correctly interpreted by all modern browsers. With this in mind, there are several simple rules that you can follow to make your messages stand out a bit from the rest, or to use emphasis where needed. Please; this document is NOT an HTML primer, it is intended only for this very limited application. HTML Post (Opera widget)Since Pad-O-Rama, previously recommended on this page, no longer seems to be available, there's an alternative you can use (if you use the Opera browser). It's called HTML Post and is designed expressly for generating forum-compatible HTML posts. While it doesn't support all the tags shown in this document, it does the basic ones and is very easy to use. You'll need to be using Opera 9.whatever, which you can find at Opera and once you've installed this (very nice) browser, you can use the menu item to find widgets, and click and install HTML Post. Preparing your textTwo options here; you can work directly in the input message box while you are online, or you can use an offline editor and then cut and paste. I do both, depending on the length of the post. Common guidelinesNo matter how you prepare the text, there are a few things you should know. First of all, just type your text normally without pressing ENTER needlessly. You do NOT have to break your text up into lines; that's the job of the browser. Indeed, you MUST not break your text up into lines (unless you're writing a poem, for example). Why? Because everyone will use a different font size and window size, and the line length that is appropriate for you may not be correct for anyone else. If you do attempt to do your own line breaks, either of two things will happen:
Don't Lose It!From time to time you'll see howls on the chat board from people who have spent ages composing a message, then lost it. This seems to happen in several ways:
Composing offlineThe only trick here is to choose a suitable editor. You want to use one that does NOT automatically put CR's (carriage returns; what you get when you press ENTER) at the end of every line. Simple editors, like Notepad, do this and are not suitable. If you're using Windows, Wordpad works fine. So do Microsoft Word, and TextPad (with soft returns selected). Notepad2 is also excellent, but there are many other "raw text" editors to choose from. You can also use a raw HTML editor to make it easier to put in tags. These are readily available on freeware sites such as Freeware Home. Do not use a WYSIWYG (what you see is what you get) HTML editor. It will insert all the page tags that the chat board script has already inserted, and that's against the rules of HTML. Important: If you use an editor such as Word, you should turn off "smart quotes" in Options. The characters used for "smart quotes" are not correctly interpreted by all browsers or in all fonts. Once you've prepared your text, just select it all (ctrl-A), then copy it (ctrl-C or EDIT:COPY). Once you are online and in the text entry box on the chat board, just press ctrl-V (EDIT:PASTE) and you're all done. Note: Some of you may know that CR's are ignored by HTML, and may wonder why you can't use them with impunity. This is because the script file of the chat board converts CR's to line breaks when preparing your message. PreviewIf you are using HTML tags it is important to preview your message before posting it (if your chat board allows this). This will allow you to spot errors and fix them before you suffer the embarrassment and horror of posting a message with a really dumb mistake in it (we'll leave the really dumb CONTENT to you). Overall AppearanceWhile HTML allows you to set background colors and images, and control the use of fonts, you are quite limited in chat board messages. BackgroundThe background color or background image used is defined in the HTML <body> tag. According to the rules you can only have one body tag in a document. Since the chat board script already has put the mandatory body tag in your document, you can not add another one. If you do, it won't cause an error (HTML never causes fatal errors); it will simply be ignored with most browsers. This means that you can't reliably set the background color or install a background image on a message. For example, I came across a message the other day in which the writer had used white text, and had set a dark background so it could be read. Well, it didn't work. I ended up with white text on a white (default) background, and it was illegible. I had to temporarily set the browser default background to a dark color to be able to read the message. Just because some browsers actually respond to the second <body> tag doesn't make it right: it is NOT part of the HTML rules. Solution? Don't use light colored text. Alternately, you can put your text in a table and set the background color to whatever you like. Beware, though; the use of tables in forum posts is tricky, and you are likely to end up with a lot of vertical blank space at the top of your message. If this happens, use a raw text editor and delete all the Enter characters within the table cells. The use of tables is beyond the present scope of this document, but may be covered in later revisions. TextYou can control the size, typeface and color of the text in a message. These are all done using the <font> tag. For example, the line:
Text sizeSize can be controlled with the <font size=...> tag. Size can be absolute (1,2,3,4,5) or relative to the default size (+1, +2, -1, -2 etc.). Note that the default size is normally 3. Stick to the relative form in messages. Some examples:
Text ColorText color can be controlled with the font command too. The syntax is <font color="cccc"> where cccc is the color specification. cccc may be a color name (keep it SIMPLE); most browsers (not all) will recognize names like green, red, blue, light green, etc. It may also be a numeric color, in the form #RRGGBB where RR, GG and BB are the red, green and blue components of the color. These are actually expressed as hexadecimal numbers, but don't worry about that. Just follow the simple rules below. In 256 color mode (somewhat rare these days), browsers choose colors from a limited palette which restricts the numbers you can use in the RRGGBB format. (Note: although this doesn't apply if the viewer is using hicolor or true color, it's always best to program for the lowest common denominator.) The rule is really simple; you should always choose RR, GG and BB from the following numbers: 00, 33, 66, 99, CC and FF, where 00 is the darkest (black) and FF is the brightest (pure color). If you use other numbers the browser will pick the closest from the list I just gave. So if I wanted pure red text, I'd set the color to "#FF0000". "#FFFF00" would give red + green = yellow text, and so on. Play with these and see just what you can come up with. For example, the orange I used at the top of this page is "#FF6600". Here it is:
TypefaceThis is a tricky one. Browsers allow the face to be specified as part of the font command. But you must remember one thing; you can specify any typeface you want, but unless the person viewing your post has the same face on his computer, it won't work and he'll just see the default. Obviously if you want it to work for a majority of users, you should choose typefaces that most people have installed. These include (for PCs):
The examples I'm going to give MAY not show up correctly on all computers; it depends on what fonts you have installed. If I wanted to use Arial, for example, for a short paragraph I'd do this:
Horizontal LinesYou can place a horizontal line in your message by using the <hr> tag. You may want to put an extra ENTER above and below it to space it out a bit.
HyperlinksYou can place hyperlinks to other documents in your message in two ways:
Archive.org link: Somersault's Guides That will end up looking simply like Somersault's Guides in your text. If you want to point to another message on the board (or anywhere else) in your message, do this:
EmphasisYou can use italics, bold-face, underline, etc. to emphasize text. Here's how:
<blink>Note: Some users have asked me to note that many people do not like blinking text ("the most despised tag in HTML"). Just thought I'd let you know.</blink> If you don't see the above text blink, blinking may be disabled in your browser, or your browser (e.g. Opera) may not support that tag. ListsLists can be numbered (ordered) or unordered. Here's how to make them. Make a numbered list like this:
Note that the <li> tag is a list item. Make an unordered list like this:
Centering and Indenting
CenteringYou can center text by using the <center> tag. Do not follow this tag with ENTER because the script will put extra line breaks in your text if you do. So:
Don't forget to close this tag with </center> or everything following it on the board (or at least in your message) may end up centered. IndentingYou can't indent text by using spaces. HTML browsers ignore spaces except as word breaks. HTML provides a special tag for indenting: <blockquote>. All you have to do is to surround your indented text with these tags. <blockquote> Think, when you talk of horses, of the patter of their hooves on the gravel of a country lane. What kind of machine can ever replace such magnificent beasts? But the machine age has come, and the quiet neighing of a faithful friend is to be replaced forever by the raucous clatter of the "horseless carriage". </blockquote> Will produce:
An alternative method that works well is to simply use an unordered list with no list item tags. Watch: <ul> This is an indented paragraph. Only a short one because I can't think of much to say. Oh, did you hear the one about the Irishman and the dog? Too bad, neither did I. </ul> gives
There is no official mechanism in HTML for indenting the first line of a paragraph. If you must do this it can be done by using non-breaking spaces. Warning: the non-breaking space tag is not understood by all browsers and may show up as &nbsp; instead of a space.
Formatted TextSometimes you will want to use manually formatted text. For example, if you are quoting something or need a short list. But if you try to line things up in a message, it won't work as you expect. For example, if I were to type: To fix this we will need: - a rubber ball
It will come out as: To fix this we will need: - a rubber ball Some of you may know that the HTML tag <pre> is normally used to do this. Alas, if you try to use it in posts, all the lines will come out double spaced (because the persnickity script puts in a line break every time you press Enter). The solution is to set a fixed pitch font (Courier New is the usual one) and use non-breaking spaces where you want to indent, as shown here: <font face="courier, courier new">To fix this we will need: - a rubber ball and it will come exactly as you want. The font tag should be on the same line as the start of the text or you will get an extra blank line that you don't expect. Note: The use of both "Courier" and "Courier New" accommodates non-Windows viewers who don't have the Courier New font installed. SummaryDon't try to use any of the following tags in a message:
Also note that many chat boards may disallow other tags, like
Make sure you always close tags. If you forget to close an <i> with an </i>, all the rest of the text in your message (and maybe even the board in some cases) will be italicized. The only tags you do not need to close* are:
Comments? Send email to Somersault or go to Somersault's Tech Forum. |