layer

Form

<layer> ... </layer>

Attributes

attribute default description
id none specifies the unique ID
above --- specifies that the layer is displayed above the current layer
background none specifies the bacground image to be tiled on a layer
below --- specifies that the layer is displayed below the current layer
bgcolor transparent specifies the background color of the layer
clip none specifies the clipping region (viewable area) of the layer
height none specifies the height of the layer's content
width none specifies the width of the layer's content
left none specified the X-coordinate in relation to a parent layer
top none specified the Y-coordinate in relation to a parent layer
name none specifies the name of the layer
pagex none specifies the X-coordinate in relation to the page
pagey none specifies the Y-coordinate in relation to the page
visibility show specifies whether the layer is visible or not (show, hide, inherit)
z-index none specifies the Z-coordinate (layer's stacking order) (zero or more positive)
src none specifies the URL of the document to be displayed to the layer

Support

[Netscape 4]

Explanation

The layer tag displays a content at the specified location on the page. It works only in Netscape 4.
If specifying the <layer> tag in block-level and inline-level, use the <ilayer> tag.

Related Tags

div, ilayer, nolayer, span

Sample Code [Output]

<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=shift_jis">
<title>Sample</title>
</head>
<body>
The layer tags are unique to Netscape 4<br>
<layer top="10" left="50">Sample</layer>
</body>
</html>