 |
BOOK: Beginning HTML, XHTML, CSS, and JavaScript  | This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

April 2nd, 2010, 05:48 PM
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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!
|
|

April 2nd, 2010, 08:54 PM
|
|
Friend of Wrox
|
|
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
|
|
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.
|
|

April 4th, 2010, 11:07 AM
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by PeterPeiGuo
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.
|
|

April 4th, 2010, 12:24 PM
|
|
Friend of Wrox
|
|
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
|
|
Among those frame related tags, iframe is the only one allowed in HTML5.
|
|

April 4th, 2010, 01:09 PM
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Quote:
Originally Posted by PeterPeiGuo
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.
|
|
 |