239 users online (0 members and 239 guests)  


  HTML Frame Tag





You've split your page up, now what? Now you have to tell the browser what HTML files are going to be in each of those sections of the screen. This tag tells the browser where to go to fill those sections of the screen.


Here is an example


<frame src="index2.htm" name="big" noresize scrolling=yes marginheight="10" marginwidth="10">


This tag has a lot of options to it. here are the attributes

  • frame * - fills the first empty space (not already filled) created in the <frameset> tag

  • src * - specifies the HTML file that will be in that space (can either be a http://... or can be a relative URL, as above)

  • name * - sets a name for the frame (this will be very important later)

  • noresize - frames can usually be resized. This takes away that option

  • scrolling - scroll bars? (values: yes - scroll bars will automatically appear: no; even if needed, scroll bars won't appear: auto; scroll bars appear only if needed)

  • marginheight - specifies top and bottom margins for frame in pixels.

  • marginwidth - specifies left and right margins for frame in pixels.


* = mandatory


This tag has no closing tag, and is used only inside of the <frameset> tag. If the rows value in the <frameset> tag has three values (i.e.: *,30%,50%), then you need to have three <frame> tags inside of it. The values in the <frameset> tag are filled sequentially with the <frame> tags; the * would be the first <frame> tag, and so on...


Back to the HTML menu.