Reply
Rendering In Dreamweaver
Old 03-27-2008, 09:12 PM Rendering In Dreamweaver
Skilled Talker

Posts: 93
Name: David Howland
Location: New England
Trades: 0
I'm coding a layout in dreamweaver right now, and I just moved the div top code from inside the <body> tags to inside the <head> tags. Now, in the "Design" pane of dreamweaver, the header bar fails to show up. When I view the site in firefox, is shows up fine. Does anyone have any idea why this might be occuring? Code is below: (None of the css was changed, and the view in Firefox still responds to changes in the css code)

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<title>Test Layout Sheet</title>
<head>
<link rel="stylesheet" type="text/css" href="test.css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
	<div id="top">
	<h1>Test CSS</h1>
	</div>
</head>
<body>	
	<div id="right">
	
	</div>
</body>
</html>
is there any harm in having the top div in the <head> section of the site?

Last edited by davidhowland14; 03-27-2008 at 09:49 PM..
davidhowland14 is offline
Reply With Quote
View Public Profile Visit davidhowland14's homepage!
 
 
When You Register, These Ads Go Away!
Old 03-27-2008, 10:13 PM Re: Rendering In Dreamweaver
Super Talker

Posts: 107
Name: Sandy
Trades: 0
Hi David,

From http://www.w3schools.com/tags/tag_head.asp :

HTML <head> tag

Definition and Usage

The head element can contain information about the document. The browser does not display the "head information" to the user. The following tags can be in the head section: <base>, <link>, <meta>, <script>, <style>, and <title>.
__________________
Sandy K
sandyk3 is offline
Reply With Quote
View Public Profile
 
Old 03-27-2008, 10:24 PM Re: Rendering In Dreamweaver
Skilled Talker

Posts: 93
Name: David Howland
Location: New England
Trades: 0
*face-palm* I was getting confused between the header tags in the two documents. Crown me a noob, i guess. Thread closed.
davidhowland14 is offline
Reply With Quote
View Public Profile Visit davidhowland14's homepage!
 
Old 03-27-2008, 11:39 PM Re: Rendering In Dreamweaver
Super Talker

Posts: 107
Name: Sandy
Trades: 0
Sorry... can't crown you the noob... you'll have to struggle to take it away from me. We are all learning and it's been one heck of a long week.
__________________
Sandy K
sandyk3 is offline
Reply With Quote
View Public Profile
 
Old 03-28-2008, 10:21 AM Re: Rendering In Dreamweaver
LadynRed's Avatar
Super Moderator

Posts: 9,036
Location: Tennessee
Trades: 0
Hey.. that's how we all learn Just think of all the dumb mistakes you've ever made--- and what you learned because of them ??
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-28-2008, 09:01 PM Re: Rendering In Dreamweaver
wayfarer07's Avatar
I like pie

Posts: 3,367
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Firefox displays results such as this, because it is very forgiving to incorrectly coded documents. I'm guessing the Explorer did not display the divs?
__________________
Wayfarer | jQuery Tooltip | Mapbox: the jQuery Map
Latest Project: Houston Movers
If Google is the Coca-Cola of Web search, Bing is RC Cola
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 03-29-2008, 10:24 AM Re: Rendering In Dreamweaver
LadynRed's Avatar
Super Moderator

Posts: 9,036
Location: Tennessee
Trades: 0
Quote:
Firefox displays results such as this, because it is very forgiving to incorrectly coded documents.
No, it isn't. Firefox is far LESS forgiving to bad coding than IE's loosey-goosey behavior.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-29-2008, 03:08 PM Re: Rendering In Dreamweaver
wayfarer07's Avatar
I like pie

Posts: 3,367
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Quote:
No, it isn't. Firefox is far LESS forgiving to bad coding than IE's loosey-goosey behavior.
On the contrary. Although Explorer is definitely less standard of a browser, in my experience Firefox is much more forgiving if you forget to close a tag in XHTML, place depreciated attributes into Strict-mode documents, etc. Firefox will display documents that are completely invalid. Explorer is much less forgiving in many instances. If you don't believe me, make a document in Strict mode of XHTML, that has many unclosed tags, and depreciated attributes everywhere, then preview it in both Firefox and Explorer. Not that I recommend doing this regularly. Plus, as pointed out in the first post, Firefox will even display a <div> that is in the <head> of the document! This is obviously completely invalid for HTML 4.01.

I think it is more correct to say that Firefox will display correctly coded documents correctly, but will do its best to display incorrectly coded documents as if they were correctly coded.
__________________
Wayfarer | jQuery Tooltip | Mapbox: the jQuery Map
Latest Project: Houston Movers
If Google is the Coca-Cola of Web search, Bing is RC Cola

Last edited by wayfarer07; 03-29-2008 at 03:16 PM..
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Reply     « Reply to Rendering In Dreamweaver
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11241 seconds with 13 queries