1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

A question about "iframe" in general

Discussion in 'HTML & Website Design' started by tayiper, Jul 23, 2006.

  1. #1
    This is more of a theoretical question. Anyway, I've seen "iframe" element being mentioned in various articles (and IIRC as quite a powerful thing, with multiple purposes/roles), then I know that it is used by Google AdSense to display ads in it etc.


    The example of the element's syntax:

    <iframe>... something ...</iframe>
    Code (markup):
    So what I am curious about is: what is so special about this particular element that it is (or it can be) so widely used ?? What is a basic difference between "iframe" and common "frame" tags/elements ??


    tayiper
     
    tayiper, Jul 23, 2006 IP
  2. abstroose

    abstroose Notable Member

    Messages:
    2,009
    Likes Received:
    170
    Best Answers:
    0
    Trophy Points:
    225
    #2
    iframes (Inline Frames) are simply floating objects which can be placed anywhere on the page, as pose to normal frames which are bound to the side of a browser window.
     
    abstroose, Jul 24, 2006 IP
  3. TechnoGeek

    TechnoGeek Peon

    Messages:
    258
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello, Tayiper.
    The difference between a standard frame and an iframe is that the iframe can be placed anywhere in the HTML page. With normal frames you have to have a frameset, an HTML document that does nothing but describe the way frames are laid out. You can have your frames arranged in rows or columns, or a mixture of rows and columns. For example, you can a header frame and two columns beneath it.
    An iframe, instead, is a rectangle that you place anywhere you want. You can specify WIDTH, HEIGHT, HSPACE, VSPACE, and ALIGN attributes for iframes, just as you would do with an image. It is very used by advertisers (like Google) because they can set exactly the dimensions they want and set up their advertisements according to this.
     
    TechnoGeek, Jul 24, 2006 IP
  4. slickricky

    slickricky Active Member

    Messages:
    240
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Just to mention the downside here, you still have many of the same problems you get with frames, like the appearance of the back button breaking, and inbound links become hard to manage becuase can lack any site branding or recognition if not careful.
     
    slickricky, Jul 24, 2006 IP
  5. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #5
    OK, thanks all for the educative replies ...


    tayiper
     
    tayiper, Jul 27, 2006 IP