New Text Extensions:

Commenting

Line Breaking

Font Stuff

SIZE Manipulation

BASEFONT Manipulation

New Symbols

Positioning

Centering

Blank spaces

Back to the index

Commenting

Commenting syntax is now as follows:

<!-- Comment comment comment -->

Nesting of comments now works properly -- you need as many close brackets (>) as open brackets (<).

Back to the top

Line Breaking: NOBR and WBR

<NOBR> NO BReak. Useful for words or strings <NOBR> you really dont want broken. The string will extend off the edge of the page if it must.</NOBR>

<WBR> Word BReak. This element is intended for use within a NOBR string so you can force a break in a particular spot if the string needs to be broken. It does not force a break where no break is necessary.

Back to the top

Font stuff

SIZE Manipulation

<FONT SIZE = 3> is default, range is from 1 to 7. Prefixing the size value with + or - specifies that it is reletive to the basefont. The basefont may also be changed from the default 3 to a number within the 1-7 range.

This is written with FONT SIZE=1

FONT SIZE=2 is slightly bigger.

Default is set to FONT SIZE=3.

FONT SIZE=+1 is equivilent to FONT SIZE=4

This is written with FONT SIZE=4

The biggest of all is FONT SIZE=7


BASEFONT Manipulation

If you set BASEFONT SIZE=4...

<BASEFONT SIZE=4>
and then set FONT SIZE=+1...

<FONT SIZE=+1>
...you'll get the equivilent of a font size of 5 from the default basefont of size 3.
</FONT> </BASEFONT>

Close font and basefont with standard </tag> brackets and you'll go back to default font sizing.

This is <FONT SIZE=5> from the default basefont size of 3.

Back to the top

New Symbols

® Registered trademark symbol escape sequence: & reg

© Copyright symbol escape sequence: & copy

Back to the top

Positioning

Centering

<CENTER>You can now center your text, sandwich text between two images, or center images using the CENTER tag.
(BTW: this is a Netscape tag, not really an HTML tag,
so it may not work for other browsers.) </CENTER>

You can also enclose text that should be centered with an extended <P> tag like so:

<P ALIGN=CENTER>I like cheese nips</P>


Blank spaces

A simple hack to add multiple blank spaces in a line of text is to use the no-break space tag, &nbsp;. Putting several in a row will create several empty spaces on Netscape, but the new version of Mosaic considers this a bug and collapses multiple &nbsp; tags into one blank space. To maintain functionality on Mosaic browsers, you can alternate the &nbsp; with empty spaces like this:

wonky&nbsp; &nbsp; &nbsp;woovy
This example should put five empty spaces between wonky and woovy. And here is what it looks like through Netscape:
wonky     woovy
Back to the top

Back to the index

Last updated 8 august 95 by katie