p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning HTML, XHTML, CSS, and JavaScript (http://p2p.wrox.com/forumdisplay.php?f=541)
-   -   Must I divide my page into frames? (http://p2p.wrox.com/showthread.php?t=78833)

andypandyrox456 April 2nd, 2010 05:48 PM

Must I divide my page into frames?
 
Hello everyone!
I have a website that has many different sections/parts. Let's say it has 10 sections (in fact, it has more).
For example: I have a section where you meet my crew, another section for graphics...
However, the only way I divided it up was using the horizontal rule, so I didn't divide it up using the <div> element or using frames.
I was wondering if there is a way for me to include different backgrounds for each section, without using frames.
Thanks!

PeterPeiGuo April 2nd, 2010 08:54 PM

Don't use frame, use div. People rarely use frame any more.

While hr tag may visually separate sections for you, it does not provide structural information to the browser.

andypandyrox456 April 4th, 2010 11:07 AM

Quote:

Originally Posted by PeterPeiGuo (Post 255764)
Don't use frame, use div. People rarely use frame any more.

While hr tag may visually separate sections for you, it does not provide structural information to the browser.

Ok thanks! That's why I was reluctant to use frames. The only type of frame I use is iFrame.
I'll work on changing the background with the <div> element.

PeterPeiGuo April 4th, 2010 12:24 PM

Among those frame related tags, iframe is the only one allowed in HTML5.

andypandyrox456 April 4th, 2010 01:09 PM

Quote:

Originally Posted by PeterPeiGuo (Post 255796)
Among those frame related tags, iframe is the only one allowed in HTML5.

that will certainly be an interesting addition to the newest version of HTML!
And I only used iframe once - I took a location from google maps and put it on my website.


All times are GMT -4. The time now is 08:42 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.