Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Frame (World Wide Web)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Tags and attributes== The frames in HTML are created using the <code><frameset></frameset></code> tag pair. The <code><frameset></code> tag is a container tag for all other tags that are used to create frames. The <code><frameset></code> tag replaces the <code><body></code> tag in frameset documents.The <code><frameset></code> tag defines how to divide the window into frames. Each frameset defines a set of rows or columns. If user define frames by using the <code>rows</code> attribute then horizontal frames are created. If user define frames by using <code>cols</code> then vertical frames are created. The <code><noframes></code> element may be included so web browsers with frames disabled (or browsers that do not support frames) can display something to the user, as in this example: <syntaxhighlight lang="html"> <frameset cols="85%, 15%"> <frame src="http://www.example.com/frame_1.html" name="frame_1"> <frame src="http://alt.example.com/frame_2.html" name="frame_2"> <noframes> Your browser does not support frames. <a href="http://www.example.com/frame_1.html">Click here</a> to view frame 1. <a href="http://alt.example.com/frame_2.html">Click here</a> for frame 2. </noframes> </frameset> </syntaxhighlight> Framesets have a <code>border</code> attribute. If set to an integer greater than 0, the user can resize the frames by dragging this border, unless a <code>noresize</code> attribute is present in a frame element. If border is set to 0, no border will be displayed and content in different frames will abut each other without delineation. The <code>iframe</code> element is used inline within a normal HTML body, and defines the initial content and name similarly to the <code>frame</code> element. Any text inside an <code><iframe></iframe></code> tag pair will be displayed in browsers that do not understand the iframe tag. <syntaxhighlight lang="html"> <iframe src="http://www.example.com/frame_1.html" height="480" width="640"> Your browser does not support iframes. <a href="http://www.example.com/frame_1.html">Click here</a> to view the content. </iframe> </syntaxhighlight>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)