Click to See Complete Forum and Search --> : Xhtml


soccer362001
08-24-2003, 01:58 PM
Does anyone know how to do frames in XHTML?

David Harrison
08-24-2003, 02:17 PM
You can in XHTML 1.0 but you have to use a frameset doctype but you can't do it at all in XHTML 1.1.

As for doing the frames, just do the same as you would for HTML.

Whether it's an iframe:

<iframe src="http://www.w3.org/">You can't see frames</iframe>

Or with a frameset. I'm not gonna post the frameset example though.

soccer362001
08-24-2003, 02:20 PM
How would I change the size of the IFrame?

David Harrison
08-24-2003, 02:22 PM
<iframe src="http://www.w3.org/" width="320" name="w3c" height="240">You can't see frames.</iframe>

You should also add a name to identify it so that you can refer to it with links.

soccer362001
08-24-2003, 02:26 PM
thanks a lot

David Harrison
08-24-2003, 02:27 PM
Happy to help. :)