Hi guys,
i have built a couple of basic sites in the past but wanna try a bit more now,
just wondering if ya know any good sites for learning html, and also im looking at using i frames with my site which is table based so any links or info on how to set these up would be great,

thanks in advance
Mike :rolleyes:

Dani AI

Generated

A short, practical companion to the thread (for and anyone finding this later):

Layout frames (<frame>/<frameset>) are obsolete — avoid them for site structure and use CSS, server includes or client-side partial updates instead. The inline <iframe> remains the correct choice when you must embed an independent document (third‑party widgets, isolated apps or sandboxed snippets). (developer.mozilla.org)

If you do use an iframe, keep it simple and safe. Example pattern (adjust src/title/size to your needs):

<iframe
  src="https://widget.example.com/"
  title="Customer support chat"
  width="100%"
  height="420"
  style="border:0"
  loading="lazy"
  sandbox="allow-forms allow-scripts"
></iframe>

Notes: give every iframe a meaningful title for accessibility; loading="lazy" defers off‑screen frames for better performance; and use the sandbox attribute to limit what embedded content can do. (getwcag.com)

Cross-origin interaction and security: don’t attempt to reach into an iframe’s DOM if it’s from another origin — use postMessage() for controlled messaging between parent and child, and always validate event.origin inside your message handler. Also be aware that remote sites can block being framed using X-Frame-Options or CSP frame-ancestors headers, so a blank frame often means the host refuses to be embedded. Protect your own pages from clickjacking with these headers. (developer.mozilla.org)

Troubleshooting tips: check the browser console for CSP/frame‑ancestors errors, test on mobile (iframes behave differently in print/printing), and prefer pagination or virtual scrolling for large datasets instead of stuffing everything into a scrollable iframe. If the goal is a persistent menu or toolbar (like mentioned), consider position:sticky/fixed or AJAX partial loading rather than using iframes for layout.

Recommended Answers

All 10 Replies

Generally, frames suck (just my 2 cents :))

I'd suggest not using frames, if you can.

Frames will soon be outdated and replaced by table designs and table-less designs (CSS). If you wish to really excel in the field of web design; choosing a CSS based path would be my opinion in where to go. But, if not, here is my HTML resource site:

http://www.funky-chickens.com/

P.S. Still recommend CSS ;)

Yep CSS is the way to go :D

The only place I've seen iframes used is as an alternative to JavaScript in link exchange programs and the type, where you're putting a 3rd party code fragment onto your site.

IFRAMEs are still used in several CMS related web apps. When dealing with a lot of data, it's wise to use them rather than scrolling through 1000 records of information. The reason why they are used is so you have menus and other tools visible to the user, otherwise, as soon as you scroll, you'd lose visibility of them. I'm using IFRAMEs in a project manager right now I'm doing in PHP. ;)

Thanks for the info guys and gals,
i got it working a little so just the rest to figure out now :) :rolleyes:

IFRAMEs are still used in several CMS related web apps. When dealing with a lot of data, it's wise to use them rather than scrolling through 1000 records of information. The reason why they are used is so you have menus and other tools visible to the user, otherwise, as soon as you scroll, you'd lose visibility of them. I'm using IFRAMEs in a project manager right now I'm doing in PHP. ;)

Yep very true :)
Also, making a project manager eh? Could I have some more information? I'll send you a PM ;)

Generally, frames suck (just my 2 cents :))

I'd suggest not using frames, if you can.

Before ranting, make sure you know what you are talking about.
Check the difference between a frame and iframe :)
This thread is about iframes, and ranting on frames makes your post useless.

I really don't recomend using frames/iframes on your pages, in 2 years time they will be going out when XHTML come in (XHTML doesn't support frames). Also many browsers don't support them as well as they might if at all.

So keep with tables, they are much easier to manage and maintain

Yep ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.