|
To access the contents, click the chapter and section titles.
HTML 4.0 Sourcebook
Common Proprietary HTML ExtensionsNetscape and Microsoft have implemented a number of proprietary HTML elements, many of which have not been incorporated into the HTML standard. Some of these (e.g., WBR, NOBR) are widely adopted by other browser vendors, while others (e.g., BLINK, MARQUEE) are less widely supported and are unlikely to be supported in the future. These elements can be useful in certain contexts, but you should always be aware of their lack of universality. If you do use them, be sure to check your documents on several different browsers, to make sure that users will see the content you intend. BGSOUND Element: Inline Audio Snippets (Internet Explorer Only)
BGSOUND is a HEAD-level element that references an audio file to be played as the document is being viewedthe URL location of the audio file is specified by the mandatory SRC attribute. By default, the sound is loaded and played oncethis can be modified by the LOOP attribute. For example, LOOP=10 instructs the browser to play the sound file 10 times before stopping. The attributes, in detail, are:
The following is an example of BGSOUND. <BGSOUND SRC=/project1/sounds/bubbles.wav LOOP=-1> BGSOUND is not supported by Netscape Navigator, so it should be avoided in documents that must work across multiple browsers. An alternative is to use EMBED or OBJECTNetscape Navigator and Internet Explorer can both play audio files using a plugin, so that invoking audio playback by this approach ensures maximum utility of the page. BLINK Element: Blinking Text (Netscape Navigator Only)
BLINK marks the enclosed text as blinkingbrowsers generally flash this text on and off. BLINK affects only enclosed text and has no effect on enclosed images, FORM input elements (although regular text inside a FORM can be rendered as blinking), or list item markers (bullets, numbers, etc.). In principle, you should explicitly mark each block of text (paragraph, list item, etc.) for blinking, as opposed to marking large blocks (several paragraphs and lists) of the document. In practice, you can use a single <BLINK> tag to mark an entire document as blinking and thereby drive your readers crazy. The slightest mention of the BLINK element causes formal HTML language designers to pull out crosses, garlic, and/or wooden stakes and begin chanting, in rising voices, Evil, evil, horrible evil!! It is, therefore, unlikely that BLINK will be integrated into the official HTML specification. For obvious reasons, there are no BLINK examples in the figures. EMBED Element: Embed an Arbitrary Data Object
EMBED specifies an arbitrary data object to be embedded within the documentfor example an audio file, a special-format graphic file, or a spreadsheet. Display of embedded objects requires extra functionality on a browser, usually provided by browser pluginsthese are product- or data-format-specific modules that are loaded into the browser whenever the corresponding data format is accessed. The NOEMBED element provides an HTML alternative to the embedded data, for use by browsers that do not support the EMBED element or that cannot process the specified embedded data type. The use of NOEMBED is described later in this section.
Note that the HTML 4 CLASS, ID, and LANG attributes are supported by Netscape Navigator 4 and Internet Explorer 4. This allows for binding of style sheet properties to EMBED elements. Some examples of plugins were shown in Example 11 in Chapter 2. The attributes supported by EMBED 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. |