Back



HTML Primer


Code Primer

When about to enter a room, the code for an avatar is copied and pasted into the Screen Name box. Should a change wish to be made, it can be done by clicking the Config link and it will bring up the Config options.

To change the image or tags code, make the change in the New Screen Name box where the current code is located. When done, click Submit or Save to enable the change. The Config options will disappear and the area is clear to post. If the change does not display or displays incorrectly, return to Config, delete the contents of the box, and reenter the code. Depending on what chat site one is on will be whether there is a separate place to paste in text code.

To change how the text that is typed looks, type in or copy and paste code into the Message Prefix box while in Config. Whatever has been placed there will be echoed in everything typed in a post. If the change does not display or displays incorrectly, return to Config, delete the contents of the box, and reenter the code. For example:

<b><font face=Arial color=sandybrown size=4><b>Typed text will display this way.</b>

Typed text will display this way.

This will display all typed text bolded, in Arial font, in the color light green with a font sized to 4.


Explanation of Code

For images on most sites, like Portal of Dreams, no quotation marks are used, as there would if the same code was being used on a web page. Here are the codes with examples to give an idea of how they are used. Note that many of the codes are used in pairs, one to begin and another to end, with the information between them.

<img src=bosk01.jpg> Displays an image.
<a href=http://www.portalofdreams.com/whochat/?gor><font color=khaki>Portal of Dreams</a> This creates a link to the Portal of Dreams whochat page and opens in the currently used window. The color of the text portion can be either the default link colors of the site, or specified, as it is here.
<a href=http://www.portalofdreams.com/whochat/?gor target=_blank style="text-decoration:none">Portal of Dreams</a> The default underline for a link can be removed by adding a style statement.
<a href=http://www.portalofdreams.com/whochat/?gor target=_blank>Portal of Dreams</a> This creates a link to the Portal of Dreams whochat and opens in a new, separate, window.
<center>The text is centered.</center> The text is centered.
<b>Makes text bold.</b> Makes text bold.
<i>Places text in italics.</i> Places text in italics.
<font color=lightgreen>Displays text in light green</font> Displays text in light green.
<font size=5>Displays text in size 5.</font> Displays text in size 5.
<font face=Times New Roman>Displays text in the font Times New Roman.</font> Displays text in the font Times New Roman.
Inserts a<br>line break. Inserts a
line break.


Colors

A list of web-safe colors can be found at Wikipedia Web Colors. These colors can be used in their text form or six-digit Hex form. For instance, one may use <font color=green> or <font color=008000>.




Back