HTMLforall

  HTML | PHP | Forum

HTML <frame> tag

Syntax

<frame>

Definition and Usage

The FRAME element defines a frame--a rectangular subspace within a Frameset document. Each FRAME must be contained within a FRAMESET that defines the dimensions of the frame.

Optional Attributes

Attribute Value Description
frameborder 0
1
Specifies whether or not to display border around the frame.
longdesc URL An URL to a long description of the frame contents. Use it for browsers that do not support frames
marginheight pixels Defines the top and bottom margins in the frame
marginwidth pixels Defines the left and right margins in the frame
name frame_name Defines a unique name for the frame 
noresize noresize To allow or not the user to resize the frame
scrolling yes
no
auto
Determines scrollbar action
src URL Defines the URL of the file to be shown in the frame

Standard Attributes

Only allowed in XHTML 1.0 Frameset DTD!!

id, class, title, style

For a full description, go to Standard Attributes.

Example

Source Output
<a href="testframe.htm" target="_blank">View this page in a new window</a>

The source code in "testframe.htm":
<html>
<frameset cols = "50%, 50%">
  <frame src ="frame1.htm" />
  <frame src ="frame2.htm" />
</frameset>
</html>

View this page in a new window

Home

Learn HTML
HTML Tutorial

HTML Reference
HTML by function
HTML by Alphabet

HTML events
HTML attributes
HTML color names

Top-Level Elements
<!--...-->
<!DOCTYPE> 
<html>
<head>
<body>
<frameset>
Head Elements
<base>
<isindex>
<link>
<meta>
<script>
<style>
<title>
Generic Block-level Elements
<address>
<blockquote>
<center>
<del>
<div>
<h1> to <h6>
<hr>
<ins>
<isindex>
<noscript>
<p>
<pre>
Lists
<dd>
<dir>
<dl>
<dt>
<li>
<menu>
<ol>
<ul>
Tables
<caption>
<col>
<colgroup>
<table>
<tbody>
<td>
<tfoot>
<th>
<thead>
<tr>
Forms
<button>
<fieldset>
<form>
<input>
<label>
<legend>
<option>
<optgroup>
<select>
<textarea>
Special Inline Elements
<a>
<applet>
<area>
<basefont>
<bdo>
<br>
<font>
<iframe>
<img>
<map>
<object>
<param>
<q>
<script>
<span>
<sub>
<sup>
Phrase Elements
<abbr>
<acronym>
<cite>
<code>
<del>
<dfn>
<em>
<ins>
<kbd>
<samp>
<strong>
<var>
Font Style Elements
<b>
<big>
<i>
<s>
<small>
<strike>
<tt>
<u>
Frames
<frame>
<frameset>
<noframes>

 

Copyright 2005-8 Sunilcare.  All Rights Reserved.
Comments or suggestions? Contact us.About us