Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Use of HTML tag...

Is this correct?



4:03 pm on Jan 13, 2001 (gmt 0)

I have a body tag that reads like this...

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#000080" vlink="#800080" BASEFONT font face="Verdana, Arial, Helvetica, sans-serif">

Am I using the correct syntax for setting the basefont to set the font face? I realize that I can use CSS. Just curious.




7:49 pm on Jan 13, 2001 (gmt 0)

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

I don't use the BASEFONT tag. No matter what the "correct" code is, the only thing you can depend on the visitor's browser actually executing consistently is the SIZE attribute.

It's a very weakly supported tag. For instance, even though the W3C [w3.org] standard beginning with HTML3.2 was that the end tag was forbidden, nevertheless Netscape would not execute the tag unless a closing tag was included. Also in Netscape, the tag does not affect the contents of table cells -- so if you use tables for layout you've got complications.

My understanding is that the tag should stand alone, rather than being included as an attribute within the BODY tag.

ZDNet Tag Library [zdnet.com]
Microsoft Developer News [msdn.microsoft.com]
HTMLHelp [htmlhelp.com]


12:58 pm on Jan 16, 2001 (gmt 0)


Yet again my thanks. I am taking a C.I.W. course. In the prep course taught by someone who stated that <!-- can ony go in the head. Guess I should have taken her statement with a grain. Just thought I could cut out some unwanted tags/weight.

Thanks again. Man I love this place,



Featured Threads

Hot Threads This Week

Hot Threads This Month