HTML
  Home arrow HTML arrow Page 3 - Frames and Lists in HTML
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Actuate Whitepapers 
Moblin 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

Frames and Lists in HTML
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2008-01-23

    Table of Contents:
  • Frames and Lists in HTML
  • Setting a Frame in the Horizontal Position
  • Displaying Frame with the Iframe
  • Lists in HTML
  • The Unordered List
  • Working with Nested Lists

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Frames and Lists in HTML - Displaying Frame with the Iframe


    (Page 3 of 6 )

    The Inline frame allows you to create a frame with an HTML page, as opposed to displaying an HTML page within a frame. Here is how you do it:


    <html>

    <body>


    <p> <h1> Here is some code</h1>

    <p> blahkhskjhkashdkashksahdkas

    <br>hkhsadkhkhsakhkasjhdkjhaskdhaskdhakshdkasjhkdhaskjdhas

    <br>kjhdkashdkashdkashkahskhjaskjhaskjdhkasjhdkashdkasjhdk

    <br>ashdkasjhkhaskdhaksjhdkashdkashkdhakshkash</p>


    <p><h2> Want to see a cool frame?<h2></p>

    <iframe src="http://www.devshed.com"></iframe>

    </body>

    </html>

    The line <iframe src=http://www.devshed.com></iframe> creates the inframe inside the page and displays the Developer Shed website within it.

    Note that if you want to link to a page outside of your own you must include the http:// portion in the url.

    Creating Frames that Cannot Be Resized

    You may or may not have noticed that when you hover over the lines that separate certain frames, you can resize them. If you want to ensure that visitors to your website cannot do so, you can program your frames using noresize, like so:


    <html>


    <frameset rows="20%,80%">


    <frame noresize="noresize" src="firstframe.htm">


    <frameset cols="20%,80%">

    <frame noresize="noresize" src="secondframe.htm">

    <frame noresize="noresize" src="thirdframe.htm">

    </frameset>


    </frameset>


    </html>

    Arnchors and Links

    You may have a table of contents page on your site, similar to our navigation frame, with the content in the right frame. When users click on a link in the Table of Contents section, instead of loading a new page, it goes to a specific section on the Contents page. You can do so in the following manner:

    <a href ="contents.htm" target ="contentsframe">Link with No Anchor</a><br>

    <a href ="contents.htm#chapter01" target ="contentsframe">Link with an Anchor</a>.

    This works like the Anchor tag in our previous tutorial on working with Links in HTML. When the use clicks the link embedded in the text “Link with No Anchor,” it simply loads the contents page. When the user clicks the link stored in the text “Link with an Anchor,” it loads the contents page and takes you to the anchored section (in this case, Chapter 01).

    More HTML Articles
    More By James Payne


       · Thanks for dropping by to read my article on Frames and Lists in HTML. In this...
       · hi there, i hav started to learn html,ur site has helped me a lot ,thanks a...
       · Hey, glad you like the site. If you have any questions about HTML (or any other...
     

    HTML ARTICLES

    - Building Single Row Database Forms with HTML
    - Introduction to Database Forms with HTML
    - Another Look at Animation of Geographical Ma...
    - Animation of Geographical Map Regions
    - Changing and Moving Pictures with CSS
    - Clickable Geographical Map Regions
    - Gradient Creation with the HR Element
    - Text on HTML Images: Do it Yourself
    - Custom Buttons in HTML
    - Quick Web Page Menu
    - Maximizing and Restoring HTML Images with th...
    - Maximizing and Restoring HTML Images with th...
    - Handling Hyperlinks and Images in HTML
    - Quick Start with HTML
    - HTML Tips







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway