|
To access the contents, click the chapter and section titles.
HTML 4.0 Sourcebook
NOBR marks a block of text that cannot contain line breaks. Thus, a block of text enclosed by a NOBR will be presented as a single line of text with no word wrapping, even if it scrolls off the edge of the screen. This is useful for strings of text that you do not wish broken at word spaces, regardless of the page layout. You may wish to allow word breaks, but only at specific locations. This is the role of the WBR element, which is used inside NOBR to mark places where line breaking is allowed. WBR is essentially a conditional BR element, in that it does not force a line break, but instead permits one where a break would otherwise be forbidden. NOEMBED Element: HTML Alternative to EMBED
When the Netscape programmers introduced the EMBED element, they realized that many browsers would be unable to process the element, or might not have a plugin capable of processing the embedded object or data type. Consequently, they introduced a second element, NOEMBED, to contain HTML markup to be used should the browser be unable to process EMBED. A browser that understands EMBED and that can process the referenced data will display the EMBEDded object and will hide the content of NOEMBED. On the other hand, a browser that does not understand EMBED will ignore the EMBED and NOEMBED tags, and will treat the content of the NOEMBED element as HTML markup to be displayed with the document. NOEMBED should be placed just after the associated EMBEDfor example: <EMBED SRC=screaming-penguins.au HEIGHT=100 WIDTH=200> <NOEMBED> <H3> The Sound of The Screaming Penguins</H3> <P>If you are reading this text, then your browser does not support EMBED, and is unable to play the embedded audio snippet. You are missing the exciting musical texturings of the new jazz quintet <EM>The Screaming Penguins</EM>. You can pick up their debut album at a record store near you. </NOEMBED> Recall that EMBED will soon be replaced by OBJECT. OBJECT provides much better mechanisms for embedding arbitrary data or program objects, plus better mechanisms for providing alternative HTML content for browsers that do not support the specified object. SERVER Element: Server-Side JavaScript (Netscape Navigator Only)
SERVER is a container for JavaScript code to be executed on the Web server, prior to sending the document to a browserat present, this is only supported by Netscape servers. Netscape servers support a special server-side JavaScript package, called LiveWire, which consists of a JavaScript interpreter, plus a special set of JavaScript functions designed for server-side processing, such as database querying. SERVER element content is processed before a document is sent to a browser, and the enclosed code (plus the <SERVER> and </SERVER> tags) are removed from the document before it is sent. Thus, a user should never see SERVER elements in served documents. SPACER Element: Horizontal and Vertical Spacing (Netscape Navigator Only)
SPACER introduces arbitrary horizontal or vertical spacing within typed text. TYPE=block spacing is analogous to inserting a transparent (invisible) image of size HEIGHT and WIDTH, and allows insertion of horizontal and vertical space at the same place. TYPE=horizontal spacers introduce simple horizontal tab-like spacings of length specified by SIZE. TYPE=vertical introduces a vertical tab, again with size specified by SIZE. In this case, however, the tab also implies a line break. Some examples of SPACER are shown in Figures 7.12 through 7.14. Note in particular Figure 7.14, which shows the page as displayed by a browser that does not understand SPACER. Because SPACER so strongly affects formatting, pages that depend on SPACER can be almost unreadable by browsers that do not understand this element.
The allowed SPACER attributes are:
|
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. |