Placing Content in Frames with the <frame /> Element

Using <frameset> elements is only the beginning of creating a framed page. After the browser window is split into regions, you need to fill each region with content. The keys to doing this are the <frame /> element and its many attributes.

Note

The <frame /> element is an empty element, meaning there is no closing </frame> or, if you do use </frame>, no content can appear between <frame> and </frame>. This may cause compatibility issues with some framed HTML 4 layouts in which content for the frame is specified between <frame> and </frame> tags.

With your frames all set up, you're ready to place content in each frame with the <frame /> element. The most important attribute of the <frame /> ...

Get Platinum Edition Using XHTML™, XML, and Java™ 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.