|
||
|
Build a Website: Home Contact Link to Build a Website Webmastering How to Build a Website Planning your Website Uploading Files Using a FTP client Getting Visitors Monitoring Web Traffic Publishing Banner Ads Web Hosting Finding a Web Host Moving to a New Host Domain Names Coding HTML Tutorials Text Editors WYSIWYG Editors Blogs How do I Make a Blog Adding Music to a Xanga Graphics Hex Color Codes Common Banner Sizes Forums What's a Forum Forum Scripts Webmaster Forums Web Host Reviews CirtexHosting Review ICDsoft Review Sonata Web Review Misc. Short URLs Review of CNcat Other Resources HTML Tutorials |
HTML Frames tutorialWhat are frames? How do I make a frame set? How do I make a page break out of the frame or go a certain cell? Adding Rows. What are inline frames or iFrames? What are frames?Click here to see an example of a web page using frames. How do I make a frame set?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <HTML> <TITLE>Title</TITLE> <FRAMESET COLS="25%,75%"> <NOFRAME> Hi If you're reading this then you need to upgrade your browser. <P> <a href="http://www.mozilla.org" target="_blank">Click here to get Mozilla</A> the open source, free, version of Netscape. It has a built-in pop-up blocker and is far more advanced than Internet Explorer. </NOFRAME> <FRAME NAME="1" SRC="page-1frame.html"> <FRAME NAME="2" SRC="page-2frame.html"> </FRAMESET> </HTML> Click here to see an example of a web page using that code.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" FRAMESET tells the browser that there is a frame on the page. It should be the first HTML command after the title.
NAME="1" The COLS tag sets the widths of the columns. In this example I wanted the left hand column to take up 25% of the screen and the other one to take up 75% of the screen.
<NOFRAME> and </NOFRAME> The name of the HTML page that you want to be placed in the frame goes in there. That HTML page is the source of the frame. There are 2 columns so I need 2 web pages to be placed inside the columns. The first web page will always be put in the left hand column then the next one will be placed in the right hand one.
</FRAMESET> Example: <A HREF="http://build-a-website.cnwcentral.com" TARGET="_TOP"> To make a page go to a certain cell add TARGET="The name of the cell" into the link. Example if you used the frameset from above and you want the page to appear in the right hand cell; If someone clicks a link from the left hand cell: <A HREF="http://build-a-website.cnwcentral.com" TARGET="2"> To add rows you need to add a FRAMESET ROWS in between FRAMESET COLS and /FRAMESET. Example:
<FRAMESET COLS="50%,50%">
An inline frame is a frame that floats inside of a regular webpage. I'll make a tutorial after I make a couple CSS ones. Go to... HTML Tutorials Table Tutorial Hex Color Codes |
|
|
Home | Links | Contact My other sites: Zoo Tycoon Help SC's Neopets Help SciFi Directory | ||