|
To access the contents, click the chapter and section titles.
HTML 4.0 Sourcebook
POINT-SIZE=number (optional; Netscape Navigator 4 only) Specifies the desired font size for the text, in points. This allows for precise specification of font size and is an adjunct to the SIZE attribute.
I Element: ItalicsI marks a section to be rendered in italics. If this is impossible, the browser can render it in some other way (lynx uses an underline). S Element: Strike-ThroughS marks a section to be rendered with a line SMALL Element: Text with Smaller Font
SMALL marks text that should be rendered, when possible, with a font slightly smaller than the font of the surrounding text. Enclosed images are not affected. SMALL is ignored if a smaller font is not available. SMALL is equivalent to a FONT element with <FONT SIZE="-1">. Note that SMALL is not allowed inside PRE. SMALL is supported by Netscape Navigator 3, Internet Explorer 3, and later. SPAN Element: Generic Container for Inline TextSPAN is a generic container for inline text or markup and is essentially the inline equivalent of the block element DIV. There is no special formatting associated with SPAN content. However, style sheets can be used to apply specific formatting to spans of text. Indeed, this is the main intent of SPANto provide markup whereby a style sheet can apply formatting to specific blocks of inline text. In this sense, you Figure 6.49 Example HTML document illustrating the use of the FONT element. Browser rendering of this document is shown in Figure 6.50. <HTML><HEAD> <TITLE> The FONT Element </TITLE> </HEAD><BODY>& ltH2 ALIGN="center"> The FONT Element </H2> <FONT SIZE="+1"><B>Font Size</B> --</FONT> You can use <B>FONT</B> to control font size. For example, <FONT SIZE=2>t<FONT SIZE=3>h<FONT SIZE=4>i<FONT SIZE=5>s <FONT SIZE=6>i</FONT>s </FONT>o</FONT>d</FONT>d </FONT> looking, as I adjusted the size of each letter. You can use this for large capital letters in headings: <p><FONT SIZE="+1">I</FONT>AN <FONT SIZE="+1">G</FONT>RAHAM'S <FONT SIZE="+1">H</FONT>OME <FONT SIZE="+1">P</FONT>AGE -- (with size change on leading letters) <HR SIZE=4> <FONT SIZE="+1"><B>Font Color -- </B></FONT> You can can also control text color. For example, the default text is black, but the following words are <FONT COLOR="red">bright red</FONT>, <FONT COLOR="#00ff00">bright green</FONT>, and <FONT COLOR="#cccccc">light gray</FONT>. This of course, loses some of its impact when printed in black and white.... <HR SIZE=4> <FONT SIZE="+1"><B>Font Face -- </B></FONT> Some browsers support font face control. This is nonstandardized, and depends on (a) browser support for this extension, and (b) the presence of the font on your computer. Here is a table of some examples: <BR><BR> <CENTER> <TABLE WIDTH="80%" CELLPADDING=2 CELLSPACING=3 BGCOLOR="#cccccc" BORDER> <TR> <TD><FONT FACE="arial">Arial</FONT> <TD><FONT FACE="Book antiqua">Book antiqua</FONT> <TD><FONT FACE="Helvetica">Helvetica</FONT> </TR> <TR> <TD><FONT FACE="modern">modern</FONT> <TD><FONT FACE="times">times</FONT> <TD><FONT FACE="arial black">arial black</FONT> </TR> <TR> <TD><FONT FACE="bookman">bookman</FONT> <TD><FONT FACE="garamond">garamond</FONT> <TD><FONT FACE="helvetica-narrow">helvetica-narrow</FONT> </TR><TR> <TD><FONT FACE="palatino">palatino</FONT> <TD><FONT FACE="lucida sans">lucida sans</FONT> <TD><FONT FACE="helvetica narrow"> &nbsp; </FONT> </TR> </TABLE> </CENTER> </BODY> </HTML>
can think of SPAN as a general-purpose successor to the FONT element. STRIKE Element: Struck-Out TextSTRIKE marks a block of text to be SUB Element: Subscript
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |