Tutorials Point


  HTML Home

  HTML Tags Reference
  Selected Reading

Copyright © 2014 by tutorialspoint



  Home     References     Discussion Forums     About TP  

HTML <ilayer> tag




Advertisements

Function:

The HTML <ilayer> tag is used to create a layer that occupies space in the containing text flow. Subsequent content is placed after the space occupied by the <ilayer>.

This is in contrast to the <layer> tag, which creates a layer above the containing text flow, allowing subsequent content to be placed under the layer just created.

Difference between HTML and XHTML:

This tag is supported by Netscape only.

Example:

This <ilayer top="4">word</ilayer> is shifted down, while
this <ilayer left="10">one</ilayer> is shifted over. With a negative
value, words can be moved <ilayer top="-4">up</ilayer> and to
the <ilayer left="-10">left</ilayer>.

This will produce following result:

This word is shifted down, while this one is shifted over. With a negative value, words can be moved up and to the left.

NOTE: This example will work in Netscape 4 only.

Online Practice:

To Become more comfortable - Do Online Practice

Attributes:

AttributeValueDescription
abovelayer nameThe name of the inline layer that will be positioned directly above the current layer in the z-order.
backgroundURLA filename or URL for an image upon which the inline layer's text and images will appear.
belowlayer nameThe name of the inline layer that will be positioned directly below the current layer in the z-order.
bgcolorrgb(x,x,x)
#xxxxxx
colorname
The color to use for the inline layer background.
clipnumberThe coordinates of the inline layer's viewable area.
heightpixelsThe inline layer's height, in pixels.
leftnumberThe position of the left side of the inline layer. If the current inline layer is part of another layer.called the parent layer-then the position is relative to the parent layer.
namelayer nameThe name of the inline layer.
pagexnumberThe position of the left side of the inline layer relative to the browser window.
pageynumberThe position of the top of the inline layer relative to the browser window.
srcURLThe URL of a page that will appear inside the inline layer.
topnumberThe position of the top of the inline layer. If the current inline layer is part of another layer--called the parent layer--then the position is relative to the parent layer.
visibilityshow
hide
inherit
Determines whether the inline layer is visible.
widthpixelsThe inline layer's width, in pixels.
z-indexnumberThe inline layer's position within the z-order. Inline layers with higher Z-INDEX values are positioned above inline layers with lower Z-INDEX values.

Standard Attributes:

AttributeDescription
classDocument wide identifier
idDocument wide identifier
styleHelps to include inline casecadubf style sheet.

Printer Friendly

Advertisements


  

Advertisements