FRAME TAGS

NCD HTML Design Guide v6.0


Sponsor's ADs:

+ Frame Basic

<frameset> ... </frameset>
<frame src="url">
<noframes> ... </noframes>

<HTML>
<HEAD>...</HEAD>
<FRAMESET>
     <FRAME SRC="url">
     <NOFRAMES>
     ...SRC for browsers does not support frame. 
     </NOFRAMES>
</FRAMESET>
<HTML>

+ Frame Size

<frameset cols=#>

A B C
<frameset cols=30%,20%,50%>
<frame src="A.html">
<frame src="B.html">
<frame src="C.html">
</frameset>

Sample Page

<frameset rows=#>

A
B
C
<frameset rows=25%,25%,50%>
<frame src="A.html">
<frame src="B.html">
<frame src="C.html">
</frameset>

Sample Page

COLS & ROWS

A B
C
<frameset cols=20%,*>
<frame src="A.html">
     <frameset rows=40%,*>
     <frame src="B.html">
     <frame src="C.html">
     </frameset>
</frameset>

Sample Page

No Resize <frame noresize>

Default frame is resizable.

+ Frame Name & Target

Frame Name
<frame name=#>
<a href=url target=#>

A B
<frameset cols=50%,50%>
<frame src="A.html">
<frame src="B.html" name="HELLO">
</frameset>

Sample Page

Special Target <a href=url target=#>
    #=_blank, _self, _parent, _top

Sample Page

+ Frame Appearance

Border Width <frameset border=#>

A
B C
<frameset rows=30%,* border=20>
  <frame src="Acol.html">
<frameset cols=30%,*>
  <frame src="Bcol.html">
  <frame src="Ccol.html">
</frameset>
</frameset>

Sample Page






Border Display <frame frameborder=#>
#=yes, no, 1, 0

A
B C
<frameset rows=30%,*>
  <frame src="Acol.html" frameborder=yes>
<frameset cols=30%,*>
  <frame src="Bcol.html" frameborder=no>
  <frame src="Ccol.html" frameborder=0>
</frameset>
</frameset>

Sample Page






Frame Spacing <frameset framespacing=#>
#=Space Size

A
B C
<frameset rows=30%,* framespacing=100>
<frame src="Acol.html">
<frameset cols=30%,*>
     <frame src="Bcol.html">
     <frame src="Ccol.html">
</frameset>
</frameset>

Sample Page






Border Color <frameset bordercolor=#>

#=rrggbb Hex Number, or Name:
Black, Olive, Teal, Red, Blue, Maroon, Navy, Gray, Lime,
Fuchsia, White, Green, Purple, Silver, Yellow, Aqua

A
B C
<frameset rows=30%,* bordercolor=red>
<frame src="Acol.html">
<frameset cols=30%,*>
     <frame src="Bcol.html">
     <frame src="Ccol.html">
</frameset>
</frameset>

Sample Page






Margin <frame marginwidth=# marginheight=#>
#=Margin Size

AAAA AA
AA
<frameset cols=50%,50%>
<frame src="A.html">
<frame src="A.html" 
    marginwidth=50 
    marginheight=50>
</frameset>

Sample Page





Scrollbar <frame scrolling=#>
#=yes, no, auto

#=auto is default.

+ Floating Frame

<iframe src=# name=#> ... </iframe>
#=URL
#=Frame Name
... = src for browser doesn't supported iframe.

Display A.html

Load A
Load B
Load C

<center>
<iframe src="A.html" name="window">
   Here is a Floating Frame
</iframe>
<br><br>
<a href="A.html"
  target="window">Load A</A><BR>
<a href="B.html"
  target="window">Load B</A><BR>
<a href="Ccol.html"
  target="window">Load C</A><BR>
</center>

Sample Page
*iframe can use the same attributes of frameset, frame and img:
     border=#, frameborder=#, framespacing=#
     marginwidth=#, marginheight=#
     scrolling=yes, no, auto
     align=top, middle, bottom, absmiddle, absbottom, 
           texttop, baseline, left, right
     width=#, height=#
     hspace=#, vspace=#


HTML Design Guide | Style Sheet Guide
Document | Page | Font | Text | Image | Form | Table | Frame | Objects | XML
HTML TAG LIST | PDF Edition


BACK TO NCD HOME
Network Communication Design - /
Copyright & Publishing 1994-2008 Network Communication Design