Layer tag |
|
|
The layer tag is a new tag introduced in Netscape 4 that allows authors to position and animate (through scripting) elements in a page. A layer can be thought of as a separate document that resides on top of the main one, all existing within one window.
<layer>This is a Layer Tag Text</layer>
The tag is a content tag, which means you can add into it content (like ). The text inside the layer floats above other text, and overlaps them. Imagine a layer as a sheet of paper that resides on top of the rest of the page, and does not take up space within the flow of the document.
Tag Attributes
id:
|
Id attribute is used for an identification handle, or name, for the layer. The ID must begin with an alphabetic character.
|
left/ top:
|
The LEFT and TOP parameters specify the horizontal and vertical positions of the top-left corner of the layer within its containing layer, or within the document. These are optional attributes.
|
bgColor
|
It specifies the background color of the layer. It is an optional attribute.
|
width/ height
|
The width and height attributes determines the width and height of the layer at which the layer's contents wrap. You can specify the value of these attributes as an integer value, or as a percentage of the width of the containing layer.
|
visibility
|
The VISIBILITY parameter determines whether the layer is visible or not. A value of HIDE hides the layer; SHOW shows the layer.
|
src:
|
It specifies an external file that contains HTML-formatted text to be displayed in this layer.
|
|
|
|
|
|
|
|
|
|