XHTML and Dreamweaver

Trying to code in XHTML with Macromedia's Dreamweaver was tough simply because the version I use (ver. 4.01) does not support coding my web pages in XHTML.

Anyway, I already had experience modifying Dreamweaver's default.html one time before when I started to use CSS to format my web pages, so that helped me solve quickly the first problem I faced with making my new, re-designed pages comply with the XHTML standards.

Adding a DOCTYPE declaration

Everytime you click on File > New Window in Dreamweaver, you will probably get something like this:

code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
 charset=iso-8859-1">
</head>
<body>

</body>
</html>

To change that, open the following file in NotePad:
path: C:\Program Files\Macromedia\Dreamweaver\Configuration\Templates\Default.html

and edit it, inserting something like this:

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>
<TITLE>Untitled Document</TITLE>
<meta http-equiv="content-type" content="text/html;
charset=" />

</HEAD>

<BODY>

</BODY>
</HTML>

In case you missed it, note that I added that space and slash at the end of this line:

code:
<meta http-equiv="content-type" content="text/html;
charset=" />

Save the file.

From now on, whenever you start Dreamweaver and open a NEW WINDOW in the program, you'll have the correct DOCTYPE declaration already inserted for you on every web page you create!

TOP

Do you like the new design?

 Yes

 No

 Don't know