Thread: Html frame question

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    27

    Talking Html frame question

    Hi,

    I am studying the differences between FRAME and IFRAME of Html. I read up a coupld of documents but still not clear, including W3C ones. I think the major differences is,

    - page contains regular FRAME and FRAMESET can not contain real content, but only FRAME/FRAMESET;

    - page contains IFRAME could contain regular content (in body element), and IFRAME just embed content in place;

    - both FRAME and IFRAME could refer to pages on local server and pages on other servers (e.g. embed some ADs).

    My understanding correct? If I missed key points of the differences, please let me know.

    Thanks!

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    A frameset page can contain regular content in the NOFRAME element (or something like that). IFRAME pretty much must coexist with regular content.
    Other than those two minor points, you've got it.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Aug 2008
    Posts
    27
    CB, I think NOFRAME element is only used when browser is not supporting frame feature. Normally we should use frameset and frame, is that correct understanding?

    Quote Originally Posted by CornedBee View Post
    A frameset page can contain regular content in the NOFRAME element (or something like that). IFRAME pretty much must coexist with regular content.
    Other than those two minor points, you've got it.

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    You shouldn't use framesets at all, actually. They're an antiquated feature that, among other things, breaks bookmarking.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Registered User
    Join Date
    Aug 2008
    Posts
    27
    CB, you are hiding the issue, not answering! :-)

    For the noframe, here is what W3C said,

    http://www.w3.org/TR/REC-html40/pres....html#h-16.4.1

    "The NOFRAMES element specifies content that should be displayed only by user agents that do not support frames or are configured not to display frames." So as I said, NOFRAME is only used in the cause without using frame, can not be used with frameset to display with frames to supply additional content.

    BTW: why do you think frameset is not popular? What is your suggestion? Using iframe?

    Quote Originally Posted by CornedBee View Post
    You shouldn't use framesets at all, actually. They're an antiquated feature that, among other things, breaks bookmarking.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need help to compile this code...
    By wise_ron in forum C Programming
    Replies: 17
    Last Post: 05-07-2006, 12:22 PM
  2. Question about binary trees and files
    By satory in forum C Programming
    Replies: 9
    Last Post: 03-06-2006, 06:28 AM
  3. another exercise question
    By luigi40 in forum C# Programming
    Replies: 3
    Last Post: 11-28-2005, 03:52 PM
  4. html frame
    By Inferno in forum Tech Board
    Replies: 7
    Last Post: 11-04-2003, 11:48 AM
  5. HTML question
    By Dave18 in forum Tech Board
    Replies: 5
    Last Post: 09-27-2002, 06:36 AM