HTML | Frameset Tag | Attributes

In our previous blog Frameset Tag, we already learnt about Frameset tag and its 2 attributes - cols and rows. Here we will learn about few more attributes:


  • bordercolor :

            With this attribute, you can specify color of border between frames.

          example:

          <html>

    <frameset cols="20%,30%,*" bordercolor=Red>

<frame src="frame1.html">

<frame src="frame2.html">

<frame src="frame3.html">

    </frameset>

        </html>

        Output:


  • frameborder :

            With this attribute, you can specify whether border between frames should displayed or not.

            It can take 2 values, 
  • 0 - No border
  • 1 - Border            

          example:

          <html>

    <frameset cols="20%,30%,*" bordercolor=Red frameborder=0>

<frame src="frame1.html">

<frame src="frame2.html">

<frame src="frame3.html">

    </frameset>

        </html>

        Output:

  • noresize:

            With this attribute, you can stop resize of frame           

          example:

          <html>

    <frameset cols="20%,30%,*" bordercolor=Red>

<frame src="frame1.html" noresize=noresize>

<frame src="frame2.html">

<frame src="frame3.html">

    </frameset>

        </html>

  • scrolling:

            With this attribute, you can specify whether scrollbar should be displayed or not.
            It can take 3 value:
    • Auto
    • Yes
    • No                       

          example:

          <html>

    <frameset cols="20%,30%,*" bordercolor=Red>

<frame src="frame1.html" noresize=noresize>

<frame src="frame2.html" scrolling=yes>

<frame src="frame3.html">

    </frameset>

        </html>

        Output:



For Live demo:


HTML Frames

Comments

Popular Posts

How to Import and Export Delimited Files, like CSV, in PowerShell

How to generate a GUID in PowerShell

PowerShell Arithmetic Operators