1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<!-- Thanks for reading the source of this document. Hope you enjoy -->
<!-- what you find here. Please let me know if you find any errors. -->
<HEAD>
<TITLE>BODY - Document body</TITLE>
<META NAME="description" CONTENT="Wilbur is the name for the next HTML standard (3.2). Here you can find all the tags in this proposal, including tips on usage and limitations.">
<META NAME="keywords" CONTENT="html authoring, reference, wilbur, tag overview">
<META NAME="generator" CONTENT="Orb v1.3 for OS/2">
<META NAME="author" CONTENT="Arnoud Engelfriet">
<LINK REV="made" HREF="mailto:galactus@htmlhelp.com" TITLE="Wilbur feedback">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#800080"
ALINK="#000080">
<H1 ALIGN=CENTER>BODY - Document body</H1>
<TABLE>
<TR>
<TH VALIGN=TOP ALIGN=LEFT><B>Appearance:</B></TH>
<TD VALIGN=TOP>[<BODY>] [</BODY>]<BR></TD>
</TR>
<TR>
<TH VALIGN=TOP ALIGN=LEFT><B>Attributes:</B></TH>
<TD VALIGN=TOP>BACKGROUND=<CODE>URL</CODE>, BGCOLOR=<CODE>#RRGGBB</CODE>, TEXT=<CODE>#RRGGBB</CODE>, LINK=<CODE>#RRGGBB</CODE>, VLINK=<CODE>#RRGGBB</CODE>, ALINK=<CODE>#RRGGBB</CODE><BR></TD>
</TR>
<TR>
<TH VALIGN=TOP ALIGN=LEFT><B>Contents:</B></TH>
<TD VALIGN=TOP><A HREF="../block/h1.html">H1</A>, <A HREF="../block/h2.html">H2</A>, <A HREF="../block/h3.html">H3</A>, <A HREF="../block/h4.html">H4</A>, <A HREF="../block/h5.html">H5</A>, <A HREF="../block/h6.html">H6</A>, <A HREF="../block/p.html">P</A>, <A HREF="../list/ul.html">UL</A>, <A HREF="../list/ol.html">OL</A>, <A HREF="../list/dir.html">DIR</A>, <A HREF="../list/menu.html">MENU</A>, <A HREF="../block/pre.html">PRE</A>, <A HREF="../list/dl.html">DL</A>, <A HREF="../block/div.html">DIV</A>, <A HREF="../block/center.html">CENTER</A>, <A HREF="../block/blockquote.html">BLOCKQUOTE</A>, <A HREF="../block/form.html">FORM</A>, <A HREF="../block/hr.html">HR</A>, <A HREF="../table/table.html">TABLE</A>, <A HREF="../block/address.html">ADDRESS</A> as well as <A HREF="../font/tt.html">TT</A>, <A HREF="../font/i.html">I</A>, <A HREF="../font/b.html">B</A>, <A HREF="../font/u.html">U</A>, <A HREF="../font/strike.html">STRIKE</A>, <A HREF="../font/big.html">BIG</A>, <A HREF="../font/small.html">SMALL</A>, <A HREF="../font/sub.html">SUB</A>, <A HREF="../font/sup.html">SUP</A>, <A HREF="../phrase/em.html">EM</A>, <A HREF="../phrase/strong.html">STRONG</A>, <A HREF="../phrase/dfn.html">DFN</A>, <A HREF="../phrase/code.html">CODE</A>, <A HREF="../phrase/samp.html">SAMP</A>, <A HREF="../phrase/kbd.html">KBD</A>, <A HREF="../phrase/var.html">VAR</A>, <A HREF="../phrase/cite.html">CITE</A>, <A HREF="../special/a.html">A</A>, <A HREF="../special/applet.html">APPLET</A>, <A HREF="../special/img.html">IMG</A>, <A HREF="../special/font.html">FONT</A>, <A HREF="../special/basefont.html">BASEFONT</A>, <A HREF="../special/br.html">BR</A>, <A HREF="../special/map.html">MAP</A>, <A HREF="../form/input.html">INPUT</A>, <A HREF="../form/select.html">SELECT</A>, <A HREF="../form/textarea.html">TEXTAREA</A> and <A HREF="../misc/pcdata.html">plain text</A>.<BR></TD>
</TR>
<TR>
<TH VALIGN=TOP ALIGN=LEFT><B>May occur in:</B></TH>
<TD VALIGN=TOP><A HREF="../body/html.html">HTML</A>.<BR></TD>
</TR>
</TABLE>
<P>
The BODY tag contains the actual contents of the document. That contents
should consist of <A HREF="../block/index.html">block elements</A> only. You
may put in <A HREF="../misc/pcdata.html">plain text</A> in the body, this is then assumed to be inside
a <A HREF="../block/p.html">P</A> container.
<P>
The attributes contain the appearance of the document. The BACKGROUND
attribute should point to the location of an image, which is used as
the (tiled) background of the document. The other attributes set the
colors for the background, text, links, visited links and active (currently
being selected) links, using the order above.
<P>
The color is composed
by specifying the red, green and blue components of the color in
hexadecimal notation, with a # in front. For example, to specify white,
the red, green and blue components are 255, 255, 255, so you would
use "#FFFFFF". You can also use the following color names, although
they are not as widely supported as the codes:<BR>
<TABLE>
<TR>
<TH ALIGN=left>Black: <TD>#000000 <TH ALIGN=left>Green: <TD>#008000
<TH ALIGN=left>Silver: <TD>#C0C0C0 <TH ALIGN=left>Lime: <TD>#00FF00<BR></TD>
<TR>
<TH ALIGN=left>Gray: <TD>#808080 <TH ALIGN=left>Olive: <TD>#808000
<TH ALIGN=left>White: <TD>#FFFFFF <TH ALIGN=left>Yellow: <TD>#FFFF00<BR></TD>
<TR>
<TH ALIGN=left>Maroon: <TD>#800000 <TH ALIGN=left>Navy: <TD>#000080
<TH ALIGN=left>Red: <TD>#FF0000 <TH ALIGN=left>Blue: <TD>#0000FF<BR></TD>
<TR>
<TH ALIGN=left>Purple: <TD>#800080 <TH ALIGN=left>Teal: <TD>#008080
<TH ALIGN=left>Fuchsia: <TD>#FF00FF <TH ALIGN=left>Aqua: <TD>#00FFFF<BR></TD>
</TABLE>
<P>
The BODY tag is optional; if you put all the <A HREF="../head/head.html">HEAD</A> elements first,
the browser can immediately see where the actual document body begins.
<H2>Notes:</H2>
<UL>
<LI>If the background image cannot be displayed, the color specified in
BGCOLOR will be used.
<LI>If you set one of the attributes, set them all. Otherwise your
specified color may conflict with a user's default. This could result
in unreadable text. For example, imagine that you set your TEXT color
to light gray, but forget to set the background. Then someone with a
light gray background will not see anything at all.
<LI>Do not set unvisited and visited links to the same color, it will
confuse your readers.
<LI>The names that you can use instead of the hexadecimal values are
not as widely supported as the color codes.
<LI>Netscape 1.1 produced a "fade" effect when more than one
BODY tag was used in a document. It would render the BGCOLOR colors in
sequence. This bug has been fixed in later versions. Do not expect that
using multiple BODY tags will give the intended results.
</UL>
<HR>
<CENTER>
<P>
<B><IMG SRC="../icon/wdglogo-small.gif" WIDTH=105 HEIGHT=40 ALT="Web Design Group" ALIGN=RIGHT></B><BR>
<A HREF="../index.html" TITLE="Index for Wilbur">Wilbur index</A> ~
<A HREF="../overview.html" TITLE="Overview of HTML 3.2 tags">Tag overview</A> ~
<A HREF="mailto:galactus@htmlhelp.com" TITLE="Wilbur reference feedback">Feedback</A>
<P>
<SMALL>
Copyright © 1997 <A HREF="http://www.stack.nl/%7Egalactus/">Arnoud "Galactus" Engelfriet</A>.
</SMALL>
</CENTER>
</BODY>
</HTML>
|