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

Posts: 92
Name: David Howland
Location: New England
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
Skilled Talker

Posts: 96
Name: Sandy
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: 92
Name: David Howland
Location: New England
*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
Skilled Talker

Posts: 96
Name: Sandy
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: 6,554
Location: Tennessee
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 online now
Reply With Quote
View Public Profile
 
Old 03-28-2008, 09:01 PM Re: Rendering In Dreamweaver
wayfarer07's Avatar
$frontend->developer

Posts: 1,036
Name: Abel Mohler
Location: Asheville, North Carolina USA
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?
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Old 03-29-2008, 10:24 AM Re: Rendering In Dreamweaver
LadynRed's Avatar
Super Moderator

Posts: 6,554
Location: Tennessee
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 online now
Reply With Quote
View Public Profile
 
Old 03-29-2008, 03:08 PM Re: Rendering In Dreamweaver
wayfarer07's Avatar
$frontend->developer

Posts: 1,036
Name: Abel Mohler
Location: Asheville, North Carolina USA
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.
__________________
Go FREELANCE <=|If a donkey eats a melon, it is still a donkey... |=> Hire Me

Last edited by wayfarer07 : 03-29-2008 at 03:16 PM.
wayfarer07 is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Rendering In Dreamweaver
 

Thread Tools

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

vB 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.15377 seconds with 12 queries