1. Home
  2. Computing & Technology
  3. Web Design / HTML

<layer></layer>

By Jennifer Kyrnin, About.com Guide

<layer> Description:

The <layer></layer> element creates layered content in a Netscape viewed Web document.

This element is no longer supported by any browser other than older versions of Netscape. It is recommended that you use CSS instead.

<layer> Web Browser Support:
<layer> Attributes:
<layer> End Tag:
</layer> REQUIRED
<layer> Contents:

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:
  • Standard <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 or HTML 4.0 specification, and should be avoided if at all possible.
  • This tag has been deprecated in Netscape 6+ in favor of CSS.
  • If you use this element, be sure to include alternative text within the element to degrade for non-layers compliant browser agents. 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:

Return to XHTML Element (HTML Tags) Library

Related HTML Tags