![]() |
|
|
dreamweaver error (top code) |
|
Average Talker
Posts: 19
Name: chris jackson
|
as you guys can tell by now im a complete noob at this stuff just kinda self teaching myself as i go, i just got dreamweaver, love it by the way but it wont let me preview in the browser becuase of the test i have at the top
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> not shur what it means or what it does but i dont know how to fix it or what it suppose to do, also if someone would explain what it does and what it means that would be great so i can better understand it |
|
|
|
| Sponsored Links (We share ad revenue): |
|
|
Re: dreamweaver error (top code) | |
|
Super Moderator
![]() Posts: 5,572
Location: Tennessee
|
Quote:
I suggest you start educating yourself on just what it is and what it does: http://www.alistapart.com/stories/doctype/ When you say it won't let you preview in the browser, does it give you an error message ? What version of DW are you using ?
__________________
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" |
|
|
|
|
|
|
Re: dreamweaver error (top code) |
|
Wannabe Adventurer...
Posts: 480
Name: Darren
Location: England
|
Can you post the whole page code or PM a link?
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..." QuizBay Help with the testing of this Beta site! |
|
|
|
|
|
Re: dreamweaver error (top code) |
|
Average Talker
Posts: 19
Name: chris jackson
|
here it is.... I think
|
|
|
|
|
|
Re: dreamweaver error (top code) |
|
Average Talker
Posts: 19
Name: chris jackson
|
HERE IT IS JUST STARTED IT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </style> <title>Sarah Jackson's Photography</title> <style type="text/css"> <!-- a:link { color: #FFFFFF; } a:visited { color: #FBFAFB; } a:hover { color: #009900; } h1 { font-size: 36px; } --> </style> <link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css" media="all"> <!-- body { background-image: url(bgsarah.jpg); background-position: center; background-color: #000000; background-repeat: no-repeat; } --> </style> <style type="text/css"> <!-- .style7 {font-family: "Arno Pro SmText"} .style8 { font-size: 36px } --> </style> </body> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><a class="MenuBarItemSubmenu" href="#">Sarah Jackson</a> <ul> <li><a href="#">Item 1.1</a></li> <li><a href="#">Item 1.2</a></li> <li><a href="#">Item 1.3</a></li> </ul> </li> <li><a href="#">Portraits</a></li> <li><a class="MenuBarItemSubmenu" href="#">Polaroids</a> <ul> <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a> <ul> <li><a href="#">Item 3.1.1</a></li> <li><a href="#">Item 3.1.2</a></li> </ul> </li> <li><a href="#">Item 3.2</a></li> <li><a href="#">Item 3.3</a></li> </ul> </li> <li><a href="#">Landscapes</a></li> <li><a href="#">Contact</a></li> </ul> <script type="text/javascript"> <!-- var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </html> |
|
|
|
|
|
Re: dreamweaver error (top code) |
|
Wannabe Adventurer...
Posts: 480
Name: Darren
Location: England
|
Previews fine on my DW CS3... I get an active X warning come up but thats pretty normal when viewing offline...
Although you seem to have a error stating "spry" undefined... (yellow exclaimation mark in corner of the browser) Make sure all the .JS file URL's are correct in your code
__________________
"I always wanted the adoration of John Lennon - With The Anonimity of Ringo Starr..." QuizBay Help with the testing of this Beta site! Last edited by rolda hayes : 05-10-2008 at 06:16 AM. |
|
|
|
|
|
Re: dreamweaver error (top code) |
|
Super Spam Talker
Posts: 879
Name: carl
Location: UK
|
Previewed fine in my DW CS3 also.
__________________
Lifes as good as you make it... |
|
|
|
|
|
Re: dreamweaver error (top code) | |
|
DEAD Good Coder
Posts: 1,099
Name: Stefan
Location: London, UK
|
Quote:
Ouch Ouch Ouch, it pains me to look at this code, it really does. the basic code layout is: Code:
DOCTYPE <html> <head> </head> <body> </body> </html> Code:
DOCTYPE <html> <head> </body> </html> The red parts are the parts I changed Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </style> <title>Sarah Jackson's Photography</title> <style type="text/css"> <!-- a:link { color: #FFFFFF; } a:visited { color: #FBFAFB; } a:hover { color: #009900; } h1 { font-size: 36px; } --> </style> <link href="style.css" rel="stylesheet" type="text/css" /> <style type="text/css" media="all"> <!-- body { background-image: url(bgsarah.jpg); background-position: center; background-color: #000000; background-repeat: no-repeat; } --> </style> <style type="text/css"> <!-- .style7 {font-family: "Arno Pro SmText"} .style8 { font-size: 36px } --> </style> </head> <body> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" /> <ul id="MenuBar1" class="MenuBarHorizontal"> <li><a class="MenuBarItemSubmenu" href="#">Sarah Jackson</a> <ul> <li><a href="#">Item 1.1</a></li> <li><a href="#">Item 1.2</a></li> <li><a href="#">Item 1.3</a></li> </ul> </li> <li><a href="#">Portraits</a></li> <li><a class="MenuBarItemSubmenu" href="#">Polaroids</a> <ul> <li><a class="MenuBarItemSubmenu" href="#">Item 3.1</a> <ul> <li><a href="#">Item 3.1.1</a></li> <li><a href="#">Item 3.1.2</a></li> </ul> </li> <li><a href="#">Item 3.2</a></li> <li><a href="#">Item 3.3</a></li> </ul> </li> <li><a href="#">Landscapes</a></li> <li><a href="#">Contact</a></li> </ul> <script type="text/javascript"> <!-- var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"}); //--> </script> </body> </html>
__________________
Offering Website Design Worldwide, please visit my website |
|
|
|
|
|
|
Re: dreamweaver error (top code) |
|
Average Talker
Posts: 19
Name: chris jackson
|
awsome thanks ill give it a try
|
|
|
|
| Sponsored Links (We share ad revenue): |
| Thread Tools | |
|
|
| Webmaster Resources Marketplace: |
| Software Development Company | Webhosting.UK.com |
| Web Templates | Text Link Brokers | Stock Photos |