Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old April 2nd, 2010, 05:48 PM
Registered User
 
Join Date: Apr 2010
Location: Planet Earth
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
Default 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!
  #2 (permalink)  
Old April 2nd, 2010, 08:54 PM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

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.
  #3 (permalink)  
Old April 4th, 2010, 11:07 AM
Registered User
 
Join Date: Apr 2010
Location: Planet Earth
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by PeterPeiGuo View Post
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.
  #4 (permalink)  
Old April 4th, 2010, 12:24 PM
Friend of Wrox
 
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

Among those frame related tags, iframe is the only one allowed in HTML5.
  #5 (permalink)  
Old April 4th, 2010, 01:09 PM
Registered User
 
Join Date: Apr 2010
Location: Planet Earth
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by PeterPeiGuo View Post
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.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Divide by Zero Error [this.Adapter.Fill(dataTable) miamikk ASP.NET 1.x and 2.0 Application Design 0 October 30th, 2006 04:26 PM
Divide, Insert a string and append a number from t Stuart Stalker SQL Server 2000 1 April 11th, 2006 06:58 PM
How can I have 4 frames in a page?? Varg_88 Classic ASP Basics 3 December 9th, 2004 12:32 AM
Nested frames crash page when called on XP Umen Javascript 4 September 23rd, 2004 10:55 AM
How show Word Document in One of the Frames page Umashankar R VB.NET 2002/2003 Basics 1 September 12th, 2004 09:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.