HTML and CSS Reference
Note that the layer src 'd document should not be a full-fledged HTML
document. In particular, it should not contain <body> or <head> tags, al-
though other HTML content is allowed.
You can combine conventional layer content with content taken from
another file by using the src attribute and placing content within the
<layer> tag. In this case, the content from the file is placed in the layer
first, followed by any inline content within the tag itself. If you choose to
use the src attribute without supplying additional inline content, you still
must supply the closing </layer> tag to end the definition of the layer.
The src attribute provides, for the first time, a source inclusion capability
in HTML. Previously, to insert content from one HTML document into an-
other, you had to rely on a server-based capability to read the other file
and insert it into your document at the correct location. Because layers
are positioned, by default, at their defining point within the current flow,
including another file in your document is simple:
...other content... <layer src="boilerplate"></layer> ...more content...
Because a layer is rendered as a separate HTML entity, the content of
the included file is not flowed into the containing text. Instead, it is
as though the inserted text were contained within a <div> tag or other
block-level HTML element.
H.3.1.8. The clip attribute
Normally, users see the entire layer unless it is obscured by a covering
layer. With the clip attribute, you can mask off portions of a layer, re-
vealing only a rectangular portion within the layer. The area of the layer
outside the visible area is made transparent, allowing whatever is under
the layer to show through.
The value of the clip attribute is two or four integer values, separated
by commas, defining pixel offsets into the layer corresponding to the
left, top, right, and bottom edges of the clip area. If only two values are