Inline Frames - HTML

Inline frames were conceived as a better method to allow smaller pieces of content to be incorporated in scrollable containers within a larger document. Although you can use regular framesets to create individually scrolling regions, the layout is somewhat hampered by the stringent row and column layout design inherent in framesets.

sample inline frame placed in a document. Note that the frame is truly “inline”—that is, completely enveloped by the document around it.

Note: Inline frames are not fully supported by all user agents. Inline frames are only safe to use if you are relatively certain that your entire audience will be using an <iframe> compatible browser to view your documents. If this is not the case, you should stay away from inline frames, or code your documents to offer incompatible browsers an alternative.

If you do decide to utilize inline frames, keep in mind that, like other frame constructs, your documents will only validate against frameset DTDs. Inline frames are accomplished with the <iframe> tag. This tag has the following, minimal format:

<iframe src=“url_of_content”></iframe>

Inline frames define separate scrollable regions truly inline within the document.

Inline frames define separate scrollable regions truly inline within the document.

The <iframe> tag has a handful of additional attributes.

tag has a handful of additional attributes.tag has a handful of additional attributes.

These attributes function exactly like their frame-based kin. It is recommended that you use as many attributes as possible to more closely specify how your <iframe> layout will be rendered.The following code was used for the document displayed .

frameset.html

products.html


All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

HTML Topics