How to Create Frames & Borders

A web frame is a section that you create in an HTML document in which you can insert another web page or a graphic or image. One of the simplest ways to separate frames when multiple frames are on a page is to add a border. Adding a border places a line around each of the frames you create. You need a general understanding of HTML to create frames and borders.

Instructions

    • 1

      Log in to your web server.

    • 2

      Navigate to the HTML page that will display the frames and borders.

    • 3

      Click on the location of the page where you want to insert the frames. You can insert the frames anywhere between the <body> and </body> tags.

    • 4

      Insert the following text:

      <frameset rows="20%,80%"

      <frame src="http://www.mysite.com/firstpage" name="frame 1">

      <frame src="http://www.mysite.com/secondpage" name="frame 2">

      </frameset>

      </frameset>

    • 5

      Replace the items you need to replace to customize the code for your page. This includes replacing the percent of space that each frame takes up (<frameset rows="20%,80%"), and replacing the "http://www.mysite.com/firstpage" and "http://www.mysite.com/secondpage" links. The frames are now fully created.

    • 6

      Click your cursor at the end of the first line of code (<frameset rows="20%,80%").

    • 7

      Insert the following code:

      framespacing="20" border="20">

    • 8

      Adjust the spacing and border numbers as needed, then publish the page.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured