// Copyright Allen & Company 2003 - all rights reserved
if (Ln>=2) {s=Xc+"&#60;span&#62;</SPAN><BR>User-definable text-level tag. Closing tag <SPAN CLASS=ci>&#60;/span&#62;</SPAN>"+Xk+"(a) <SPAN CLASS=ci>&#60;span&#62;</SPAN> has no intrinsic style features<BR>&nbsp;<DIV CLASS=bkhw><B>It has &#60;span&#62;no effect&#60;/span&#62; on its own.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>It has no effect on its own.</DIV><BR><SPAN CLASS=lg>A <SPAN CLASS=ci>&#60;span&#62;</SPAN> has no style features: you add your own.</SPAN><BR><BR>(b) Add color rule<BR>&nbsp;<DIV CLASS=bkhw><B>Add &#60;span style=color:red&#62;red&#60;/span&#62;colour.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0;>Add <SPAN STYLE=color:red>red</SPAN> colour.</DIV><BR><SPAN CLASS=lg>You can add several rules in a <B>style=</B> section, see for example: "+Xo+"(&#39;font-family&#39;)'><NOBR>font-family</NOBR></A>, "+Xo+"(&#39;font-weight&#39;)'><NOBR>font-weight</NOBR></A>, and "+Xo+"(&#39;font-size&#39;)'><NOBR>font-size</NOBR></A>. If a rule includes <SPAN CLASS=ky>&nbsp;Space&nbsp;</SPAN>s you must use &#34;quotes&#34; around it (see example under <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;div&#39;)'>div</A>&#62;</SPAN>). Rules can be grouped in a re-usable "+Xo+"(&#39;Class&#39;)'>Class</A>.</SPAN><BR><BR>Rules that would make sense only in a block context, such as "+Xo+"(&#39;text-align&#39;)'><NOBR>text-align</NOBR></A>, are ignored in a text <SPAN CLASS=ci>&#60;span&#62;</SPAN>.<BR><BR>The corresponding block-level tag is <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;div&#39;)'>div</A>&#62;</SPAN>."+Xn;Cn["span"]=s}
if (Ln>=2) {s=Xc+"&#60;div&#62;</SPAN><BR>User-definable block-level tag. Closing tag <SPAN CLASS=ci>&#60;/div&#62;</SPAN>"+Xk+"(a) <SPAN CLASS=ci>&#60;div&#62;</SPAN> has no intrinsic style features<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div&#62;<BR>This text appears in a block.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>This text appears in a block.</DIV><BR><SPAN CLASS=lg>The enclosed text is rendered in a block: it begins on a new line; text following the block starts a new line. There are no built-in style features, you add your own.</SPAN><BR><BR>(b) Add "+Xo+"(&#39;text-align&#39;)'>text-align</A> rule<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=text-align:center&#62;<BR>This is centred.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0;text-align:center>This is centred.</DIV><BR><SPAN CLASS=lg>The added rule centres the text in the <SPAN CLASS=ci>&#60;div&#62;</SPAN>.</SPAN><BR><BR>(c) Add "+Xo+"(&#39;font-family&#39;)'>font-family</A> rule<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=&#34;font-family:Times New Roman&#34;&#62;<BR>Rendered in Times New Roman font.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=\"background-color:#D0E8D0;font-family:Times New Roman;font-size:1.2em\">Rendered in Times New Roman font.</DIV><BR><SPAN CLASS=lg>If the rule includes <SPAN CLASS=ky>&nbsp;Space&nbsp;</SPAN>s you must use &#34;quotes&#34; around it, as shown. You can add several rules in a <B>style=</B> section. Separate each rule with a <SPAN CLASS=qfx>;</SPAN> (semi-colon). Rules can be grouped in a re-usable "+Xo+"(&#39;Class&#39;)'>Class</A>.</SPAN><BR><BR>The corresponding text-level tag is <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;span&#39;)'>span</A>&#62;</SPAN>."+Xn;Cn["div"]=s}
if (Ln>=2) {s=Xc+"&#60;style&#62;</SPAN><BR>Encloses CSS style rules. Closing tag <SPAN CLASS=ci>&#60;/style&#62;</SPAN><BR><BR>(a) Set <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;body&#39;)'>body</A>&#62;</SPAN> defaults<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;head&#62;<BR>&#60;style&#62;<BR>body{font-family:arial, sans-serif;<BR>&nbsp;&nbsp;font-size:0.8em;<BR>&nbsp;&nbsp;color:green;<BR>&nbsp;&nbsp;background-color:wheat}<BR>&#60;/style&#62;<BR>&#60;/head&#62;<BR></B></DIV><BR><SPAN CLASS=lg>The <SPAN CLASS=ci>&#60;style&#62;</SPAN> tag goes in the <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;head&#39;)'>head</A>&#62;</SPAN>. This example sets defaults for the <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;body&#39;)'>body</A>&#62;</SPAN> tag with "+Xo+"(&#39;font-family&#39;)'><NOBR>font-family</NOBR></A>, "+Xo+"(&#39;font-size&#39;)'><NOBR>font-size</NOBR></A>, "+Xo+"(&#39;color&#39;)'>color</A> and "+Xo+"(&#39;background-color&#39;)'><NOBR>background-color</NOBR></A> rules. These rules will apply to the whole of the current document.</SPAN><BR><BR>(b) Define a re-usable "+Xo+"(&#39;Class&#39;)'>Class</A><BR>&nbsp;<DIV CLASS=bkhw><B>&#60;head&#62;<BR>&#60;style&#62;<BR>.headings{font-family:\"Times New Roman\";<BR>&nbsp;&nbsp;font-size:1.5em;<BR>&nbsp;&nbsp;color:black;<BR>&nbsp;&nbsp;text-align:center}<BR>&#60;/style&#62;<BR>&#60;/head&#62;<BR></B></DIV><BR><SPAN CLASS=lg>Defines the re-usable "+Xo+"(&#39;Class&#39;)'>Class</A>: <SPAN CLASS=rfs>headings</SPAN> with rules for "+Xo+"(&#39;font-family&#39;)'><NOBR>font-family</NOBR></A>, "+Xo+"(&#39;font-size&#39;)'><NOBR>font-size</NOBR></A>, "+Xo+"(&#39;color&#39;)'>color</A> and "+Xo+"(&#39;text-align&#39;)'><NOBR>text-align</NOBR></A> (suitable for headings). This "+Xo+"(&#39;Class&#39;)'>Class</A> could be used throughout the document (as the style attribute of a <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;div&#39;)'>div</A>&#62;</SPAN> tag)</SPAN>"+Xn;Cn["style"]=s}
if (Ln>=2) {s=Xc+"Class</SPAN><BR>A named group of Cascading Style Sheet rules. The choice of name is up to you."+Xk+"(a) A keystroke <SPAN CLASS=ci>Class</SPAN><BR>&nbsp;<DIV CLASS=bkhw><B>&#60;head&#62;<BR>&#60;style&#62;<BR>.key{background-color:silver;<BR>&nbsp;color:white;<BR>&nbsp;font-family:verdana}<BR>&#60;/style&#62;<BR>&#60;/head&#62;<BR>&#60;body&#62;<BR>Press the &#60;span class=key&#62;Return&#60;/span&#62; key.<BR>&#60;/body&#62;<BR></B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>Press the <SPAN STYLE=background-color:silver;color:white;font-family:verdana>Return</SPAN> key.</DIV><BR><SPAN CLASS=lg>A simple <SPAN CLASS=ci>Class</SPAN> to refer to keys you might press. Note that vital <SPAN CLASS=ky>&nbsp;Period&nbsp;</SPAN> needed in the <SPAN CLASS=ci>Class</SPAN> definition <B>.key</B> in the <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;style&#39;)'>style</A>&#62;</SPAN> section in the <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;head&#39;)'>head</A>&#62;</SPAN>. The choice of a name for the <SPAN CLASS=ci>Class</SPAN> (<B>key</B> in this case) is up to you.</SPAN><BR><BR>(b) A <SPAN CLASS=ci>Class</SPAN> to centre main headings<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;head&#62;<BR>&#60;style&#62;<BR>.heading{text-align:center;<BR>&nbsp;color:red;<BR>&nbsp;font-size:1.5em}<BR>&#60;/style&#62;<BR>&#60;/head&#62;<BR>&#60;body&#62;<BR>&#60;div class=heading&#62;Main headings&#60;/div&#62;<BR>&#60;/body&#62;<BR></B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0><DIV STYLE=text-align:center;color:red;font-size:1.5em>Main headings</DIV></DIV><BR><SPAN CLASS=lg>If a <SPAN CLASS=ci>Class</SPAN> is used for your headings, then you can change them all at once merely by changing the <SPAN CLASS=ci>Class</SPAN> definition. It also helps to maintain a uniform appearance of pages.</SPAN><BR><BR>See also <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;div&#39;)'>div</A>&#62;</SPAN>, <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;span&#39;)'>span</A>&#62;</SPAN>."+Xn;Cn["Class"]=s}
if (Ln>=2) {s=Xc+"font-family</SPAN><BR>Cascading Style Sheet rule to set font family."+Xk+"(a) Changing font inline<BR>&nbsp;<DIV CLASS=bkhw><B>You can change<BR>&#60;span style=&#34;font-family:Times New Roman&#34;&#62;A Font&#60;/span&#62; used within a line of text.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>You can change <SPAN STYLE=\"font-size:1.2em;font-family:Times New Roman\">A Font </SPAN> used within a line of text.</DIV><BR><SPAN CLASS=lg>Use &#34;quotes&#34; around any rule that contains <SPAN CLASS=ky>&nbsp;Space&nbsp;</SPAN>s.</SPAN><BR><BR>(b) Specify font for entire document<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;head&#62;<BR>&#60;style&#62;<BR>body{font-family:&#34;Book Antiqua&#34;,serif}<BR>&#60;/style&#62;<BR>&#60;/head&#62;</B></DIV><BR><SPAN CLASS=lg>Text in the <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;body&#39;)'>body</A>&#62;</SPAN> will be shown in <SPAN CLASS=rfs>Book Antiqua</SPAN>. If it&#39;s not available, any available <SPAN CLASS=rfs>serif</SPAN> font is used. A serif font is often the default anyway, but it&#39;s better to be specific. Some Browsers don&#39;t need &#34;quotes&#34; around rules with <SPAN CLASS=ky>&nbsp;Space&nbsp;</SPAN>s when they&#39;re in a <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;style&#39;)'>style</A>&#62;</SPAN> section of the <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;head&#39;)'>head</A>&#62;</SPAN>, but it&#39;s safer to use them.</SPAN><BR><BR>See also "+Xo+"(&#39;font-size&#39;)'>font-size</A>, "+Xo+"(&#39;font-style&#39;)'>font-style</A>, and "+Xo+"(&#39;font-weight&#39;)'>font-weight</A>."+Xn;Cn["font-family"]=s}
if (Ln>=2) {s=Xc+"font-size</SPAN><BR>Cascading Style Sheet rule to set font size."+Xk+"(a) Changing font size inline<BR>&nbsp;<DIV CLASS=bkhw><B>You can change<BR>&#60;span style=font-size:1.2em&#62;the size&#60;/span&#62; of the font used.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>You can change <SPAN STYLE=font-size:1.2em;>the size</SPAN> of the font used.</DIV><BR><SPAN CLASS=lg>Using <SPAN CLASS=rfs>em</SPAN>-heights changes the font relative to the default size in force. This is better than specifying an absolute size, since it leaves control with the user.</SPAN><BR><BR>(b) Specify size for entire document<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;head&#62;<BR>&#60;style&#62;<BR>body{font-size:1.2em}<BR>&#60;/style&#62;<BR>&#60;/head&#62;</B></DIV><BR><SPAN CLASS=lg>Text in the <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;body&#39;)'>body</A>&#62;</SPAN> is displayed at <SPAN CLASS=rfs>1.2</SPAN> times the size the user has set by default.</SPAN><BR><BR>See also "+Xo+"(&#39;font-family&#39;)'>font-family</A>, "+Xo+"(&#39;font-style&#39;)'>font-style</A>, and "+Xo+"(&#39;font-weight&#39;)'>font-weight</A>."+Xn;Cn["font-size"]=s}
if (Ln>=2) {s=Xc+"color</SPAN><BR>Cascading Style Sheet rule to set text colour."+Xk+"(a) Add to another tag<BR>&nbsp;<DIV CLASS=bkhw><B>Change<BR>&#60;b style=color:red&#62;text colour&#60;/b&#62;<BR>of a bold tag</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>Change <B STYLE=color:red>text colour</B> of a bold tag.</DIV><BR><SPAN CLASS=lg>The bold text is shown in red. The rule <SPAN CLASS=br>must</SPAN> be spelt as in US English: <SPAN CLASS=ci><NOBR>color</NOBR></SPAN>. To change the bold tag everywhere in the document, use a </SPAN><NOBR><SPAN CLASS=bkhw><B>b{color:red}</B></SPAN></NOBR><SPAN CLASS=lg> rule in a <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;style&#39;)'>style</A>&#62;</SPAN> section in the document <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;head&#39;)'>head</A>&#62;</SPAN>.</SPAN><BR><BR>(b) Blocks of coloured text<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=color:coral&#62;<BR>All text in the block is shown in coral colour.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0;color:coral>All text in the block is shown in coral colour.</DIV><BR><SPAN CLASS=lg>To change text colour for the whole document, use a </SPAN><NOBR><SPAN CLASS=bkhw><B>body{color:coral}</B></SPAN></NOBR><SPAN CLASS=lg> rule in a <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;style&#39;)'>style</A>&#62;</SPAN> section in the document <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;head&#39;)'>head</A>&#62;</SPAN>.</SPAN><BR><BR>See "+Xo+"(&#39;background-color&#39;)'><NOBR>background-color</NOBR></A> rule to change background."+Xn;Cn["color"]=s}
if (Ln>=2) {s=Xc+"background-color</SPAN><BR>Cascading Style Sheet rule to set background colour."+Xk+"(a) Add to another tag<BR>&nbsp;<DIV CLASS=bkhw><B>Change<BR>&#60;b style=background-color:red&#62;background&#60;/b&#62;<BR>of a bold tag</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>Change <B STYLE=background-color:red>background</B> of a bold tag.</DIV><BR><SPAN CLASS=lg>The bold text is shown in red background. The rule <SPAN CLASS=br>must</SPAN> be spelt as in US English: <SPAN CLASS=ci><NOBR>background-color</NOBR></SPAN>. To change the bold tag everywhere in the document, you can use a </SPAN><NOBR><SPAN CLASS=bkhw><B>b{background-color:red}</B></SPAN></NOBR><SPAN CLASS=lg> rule in a <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;style&#39;)'>style</A>&#62;</SPAN> section in the document <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;head&#39;)'>head</A>&#62;</SPAN>.</SPAN><BR><BR>(b) Blocks of background colour<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=background-color:yellow&#62;<BR>All text in the block has a yellow background.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:yellow>All text in the block has a yellow background.</DIV><BR><SPAN CLASS=lg>We use this rule to show our rendered examples in <SPAN STYLE=background-color:#D0E8D0>this&nbsp;colour</SPAN>, and the <SPAN STYLE=background-color:yellow>yellow</SPAN> overrides it, of course.</SPAN><BR><BR>To change text colour, see the "+Xo+"(&#39;color&#39;)'>color</A> rule."+Xn;Cn["background-color"]=s}
if (Ln>=2) {s=Xc+"text-align</SPAN><BR>Cascading Style Sheet rule to set text alignment."+Xk+"(a) Centred text<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=text-align:center&#62;<BR>This is centred.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0;text-align:center>This is centred.<BR></DIV><BR><SPAN CLASS=lg>Centred text is useful for headings and footnotes.</SPAN><BR><BR>(b) Left-aligned text<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=text-align:left&#62;<BR>This is left-aligned.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0;text-align:left>This is left-aligned.<BR></DIV><BR><SPAN CLASS=lg>This is the default alignment for most purposes.</SPAN><BR><BR>(c) Right-aligned text<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=text-align:right&#62;<BR>This is right-aligned.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0;text-align:right>This is right-aligned.<BR></DIV><BR><SPAN CLASS=lg>May be useful for some specialised layouts.</SPAN><BR><BR>(a) Justified text<BR>&nbsp;<DIV CLASS=bkhw><B>&#60;div style=text-align:justfiy&#62;<BR>Only you can hear and see, behind the eyes of the sleepers, the movements and countries and mazes and colours and dismays and rainbows and tunes and wishes and flight and fall and despairs and big seas of their dreams.<BR>&#60;/div&#62;</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0;text-align:justify>Only you can hear and see, behind the eyes of the sleepers, the movements and countries and mazes and colours and dismays and rainbows and tunes and wishes and flight and fall and despairs and big seas of their dreams.</DIV><BR><SPAN CLASS=lg>Justfied text is harder to read than left-aligned. With long words, peculiar gaps can result (for an example, see <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;p&#39;)'>p</A>&#62;</SPAN>). The quotation used above is from Dylan Thomas: Under Milk Wood.</SPAN>"+Xn;Cn["text-align"]=s}
if (Ln>=2) {s=Xc+"font-weight</SPAN><BR>Cascading Style Sheet rule to set the font weight."+Xk+"(a) Changing font weight inline<BR>&nbsp;<DIV CLASS=bkhw><B>You can change<BR>&#60;span style=font-weight:bold&#62;the weight&#60;/span&#62; of the font used.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>You can change <SPAN STYLE=font-weight:bold>the weight</SPAN> of the font used.</DIV><BR><SPAN CLASS=lg>You can also use numeric weights (from <B>100</B> to <B>900</B>). <B>400</B> is <SPAN CLASS=rfs>normal</SPAN> and <B>700</B> is <SPAN CLASS=rfs>bold</SPAN> (in most cases, these are the only two weights rendered differently).</SPAN><BR><BR>(b) Equivalent HTML tag<BR>&nbsp;<DIV CLASS=bkhw><B>The &#60;b&#62;HTML Bold&#60;/b&#62; tag is an alternative.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>The <B>HTML Bold</B> tag is an alternative.</DIV><BR><SPAN CLASS=lg>With the simple <SPAN CLASS=cnb>&#60;"+Xo+"(&#39;b&#39;)'>b</A>&#62;</SPAN> tag available, you would normally use <SPAN CLASS=ci>font-weight</SPAN> only in a Class.</SPAN><BR><BR>See also "+Xo+"(&#39;font-family&#39;)'>font-family</A>, "+Xo+"(&#39;font-size&#39;)'>font-size</A>, and "+Xo+"(&#39;font-style&#39;)'>font-style</A>."+Xn;Cn["font-weight"]=s}
if (Ln>=2) {s=Xc+"font-style</SPAN><BR>Cascading Style Sheet rule to set normal/italic font."+Xk+"(a) Changing font style inline<BR>&nbsp;<DIV CLASS=bkhw><B>You can change<BR>&#60;span style=font-style:italic&#62;the style&#60;/span&#62; of the font used.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>You can change <SPAN STYLE=font-style:italic>the style</SPAN> of the font used.</DIV><BR><SPAN CLASS=lg>The styles available are <SPAN CLASS=rfs>normal</SPAN>, <SPAN CLASS=rfs>italic</SPAN>, and <SPAN CLASS=rfs>oblique</SPAN> (in most Browsers, this is equivalent to italic).</SPAN><BR><BR>(b) Equivalent HTML tag<BR>&nbsp;<DIV CLASS=bkhw><B>The &#60;i&#62;HTML Italic&#60;/i&#62; tag is an alternative.</B></DIV>&nbsp;<DIV STYLE=background-color:#D0E8D0>The <I>HTML Italic</I> tag is an alternative.</DIV><BR><SPAN CLASS=lg>With a simple, equivalent HTML tag available, you would normally use <SPAN CLASS=ci>font-style</SPAN> only in a "+Xo+"(&#39;Class&#39;)'>Class</A>.  For most fonts, an Italic rendering is less easy to read.</SPAN><BR><BR>See also "+Xo+"(&#39;font-family&#39;)'>font-family</A>, "+Xo+"(&#39;font-size&#39;)'>font-size</A>, and "+Xo+"(&#39;font-weight&#39;)'>font-weight</A>."+Xn;Cn["font-style"]=s}
