Webreference.com: HTML 3.2 and Netscape 3.0: Summary | WebReference

Webreference.com: HTML 3.2 and Netscape 3.0: Summary

prevtopnext

Summary

HTML 3.2 and Netscape 3.0


Here are all the usage recommendations included in this compound document. By avoiding these Netscape-specific tags this table will allow you to use NHTML like HTML 3.2.
The <TITLE> element
<TITLE> S Sc...</TITLE> - WRONG
<TITLE>Descriptive text here less than 64 char </TITLE> - RIGHT

The <BODY> element
<BODY BGCOLOR=XXXXX TEXT=XXXXX> - WRONG
<BODY BGCOLOR="YYYYYY"><BODY BGCOLOR="ZZZZZ"> ad infinitum -WAY WRONG
<BODY BACKGROUND="art/bg_paper.jpg" TEXT="#000000"...> - RIGHT
<BODY BGCOLOR="#ffffff" TEXT="#000000" VLINK="#ff0000" LINK="#0000ff"> - RIGHT

ALIGNment
<CENTER>Centering 101</CENTER> -WRONG
<P ALIGN=CENTER>Centering 101</P> - RIGHT

<CENTER><H2>Heading</H2></CENTER> - WRONG
<H2 ALIGN=CENTER>Heading</H2> - RIGHT

<CENTER><IMG SRC="/pics/blackbeard.jpg" WIDTH=200 HEIGHT=300 ALT="[Blackbeard JPEG]"></CENTER> - WRONG

<DIV ALIGN=CENTER><IMG SRC="/pics/blackbeard.jpg" WIDTH=200 HEIGHT=300 ALT="[Blackbeard JPEG]"></DIV> - RIGHT (or use a P ALIGN=CENTER)

The <IMG> element
<A HREF="/cgi-bin/imagemap/index.map"><IMG SRC="officemap.gif" ALIGN=ABSMIDDLE BORDER=3 VSPACE=5 HSPACE=10 ISMAP></A> - WRONG

<A HREF="/cgi-bin/imagemap/index.map"><IMG SRC="officemap.gif" WIDTH=250 HEIGHT=400 ALIGN=LEFT ISMAP ALT="Sensitive Office Map"> - RIGHT

<TABLE>
CAPTION
<TABLE>
<CAPTION><H2>Tables with H2, a no no</H2> - WRONG

<TABLE>
<CAPTION ALIGN=BOTTOM>Table with a correct caption, placed under the table, defaults to center</CAPTION> - RIGHT

CENTER
<CENTER>
<TABLE>
<TR><TD>Centers in Netscape<TD>Datagram
</TABLE>
</CENTER> - WRONG

<CENTER>
<TABLE ALIGN=CENTER>
<TR><TD>Hey, this really works.<TD>Data, Data, where are you Data?
</TABLE>
</CENTER> - RIGHT (works for Netscape 1.1 and HTML 3.0)

or

<DIV ALIGN=CENTER>
<TABLE ALIGN=CENTER>
<TR><TD>da, da, da, dooo<TD>Data, ohhh DATA
</TABLE>
</DIV> - RIGHT (works for Netscape 2.0 and HTML 3.0)*

or

<TABLE ALIGN=CENTER>
<TR><TD>HTML 3.0-only way<TD>Early 1996?
</TABLE> - RIGHT (works for HTML 3.0-compliant browsers only, Netscape 3.0?)

WIDTH
<TABLE WIDTH=400> or WIDTH=75% - WRONG (pixels supported but discouraged)
<TABLE WIDTH="75%"> - RIGHT

BORDER
<TABLE BORDER=5 CELLPADDING=10 CELLSPACING=5> - RIGHT

<TABLE BORDER=1 FRAME=hsides RULES=cols CELLPADDING=5 CELLSPACING=5> - HTML 3.0

BGCOLOR
<TABLE ALIGN=RIGHT BORDER=1 WIDTH=20%>
<CAPTION CENTER Valign=BOTTOM>Color Cells</CAPTION>
<TR><TD BGCOLOR=#bbffee>One Color</TD></TR>
<TR><TD BGCOLOR=#ffaacc>Another Color</TD></TR>
</TABLE> - WRONG

<TABLE ALIGN=RIGHT BORDER=1 WIDTH="20%">
<CAPTION CENTER ALIGN=BOTTOM>Color Cells</CAPTION>
<TR><TD>One Color</TD></TR>
<TR><TD>Same darned Color</TD></TR>
</TABLE> - RIGHT

Color Cells
One Color
Another Color
TR
<TABLE>
<TR ALIGN=CENTER> - RIGHT <TABLE>
<TR ALIGN=CENTER VALIGN=TOP> - HTML 3.0
TD/TH
<TD WIDTH=50% NOWRAP>some data</TD> -WRONG
<TD COLSPAN=2 ALIGN=RIGHT VALIGN=TOP>some data</TD> - RIGHT
Aligning multiple cells
<TR ALIGN=CENTER> - RIGHT

<COL ALIGN=CENTER>
<TR ALIGN=CENTER> - HTML 3.0

TD Column Width
<TABLE>
<TR>
<TD WIDTH=60%>data, data, lots of data</TD>
<TD WIDTH=40%>data</TD>
</TR>
</TABLE> -WRONG

<TABLE>,
<TR>
<TD>Data, data, we got data</TD>
<TD>Second data cell</TD>
</TR>
</TABLE> - RIGHT

<TABLE COLS=3 WIDTH="80%">
<COL WIDTH=".3*">
<COL WIDTH=".3*">
<COL WIDTH=".1*"> - HTML 3.0

Lists
<UL TYPE=SQUARE>
<LI>One
<LI>Two
<LI>Buckle my shoe
</UL> - WRONG

<UL>
<LI>One
<LI>Two
<LI>Undo my shirt
</UL> - RIGHT

HR
<HR SIZE=5 NOSHADE WIDTH=80% ALIGN=CENTER> - WRONG
<HR> - RIGHT

FONT
<FONT SIZE=-1>Smaller text</FONT> - WRONG
<SMALL><SUP>Smaller, superscript text</SUP></SMALL> - RIGHT

BLINK
<BLINK>I'm blinking, help me!</BLINK> - Just plain WRONG

NOBR
<NOBR> - WRONG
&nbsp; - RIGHT

ISINDEX
PROMPT - RIGHT

BR
CLEAR=Left, right, all - RIGHT

nextprev

Comments/suggestions are welcome at aking@webreference.com

 


Revised: August 17, 1996

URL: http://webreference.com/html3andns/summary.html