1. Computing

Discuss in my forum

<layer></layer>

By

LAYER Description:

The LAYER tag creates layered content. This tag is a Netscape specific tag. This tag is deprecated and is no longer supported by any browser other than Netscape. I recommend that you use z-index to create layers of content using CSS.

LAYER Web Browser Support:

LAYER Attributes:

LAYER End Tag:

</layer> REQUIRED

LAYER Contents:

CDATA. HTML text. The following tags are valid within the LAYER tag:
a, abbr, acronym, address, applet, b, basefont, bdo, big, blockquote, br, button, center, cite, code, dfn, dir, div, dl, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, i, iframe, img, input, isindex, kbd, label, map, menu, noframes, noscript, object, ol, p, pre, q, s, samp, script, select, small, span, strike, strong, sub, sup, table, textarea, tt, u, ul, var

LAYER Valid Context:

The LAYER tag is valid within the following tags:
blockquote, body, center, dd, div, fieldset, iframe, li, noframes, noscript, object, td, th,

LAYER Usage:

Typical layer

<layer width="150" bgcolor="#3399ff" height="10" left="200">
a standard Netscape layer
</layer>

LAYER Special Notes:

  • This element is not a part of the XHTML 1 or HTML 4.0 specifications, and should be avoided if at all possible.
  • This tag has been deprecated in Netscape 6+ in favor of the CSS property z-index.
  • If you use this element, be sure to include alternative text within the element to degrade for non-layers compliant browsers. Even better is to use object detection to display the layer only on layers compliant browsers.
  • Name your layers if you want to manipulate them with JavaScript.

More LAYER Information:

©2014 About.com. All rights reserved.