Forums

This topic is locked

missing <HTML> <HEAD> and <BODY> tags

Posted 03 Dec 2005 22:13:41
1
has voted
03 Dec 2005 22:13:41 Irene Brady posted:
Hi,
I am the newbiest of newbies in Dreamweaver MX2004 (2 days) although I have written lots of HTML code by hand. I have designed a new home page for my website since I apparently screwed up the hand-built code and can't figure out how to make it work. Looks awful in everything but IE browsers. It's at www.natureworkspress.com

Now, in Dreamweaver's Code View the code page doesn't any &lt;HTML&gt; tag. It starts with &lt;style type="text/css"&gt;. After the script tag closes, there is a java script section.

I inserted metatags and a title after the java script section, but Dreamweaver hasn't inserted any &lt;HTML&gt; &lt;HEAD&gt; or &lt;BODY&gt; tags (or their closers) or the language info for the the coding (such as &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; which is the code for this website).

Do I need to do this myself or does it happen at some later date? I don't know what to put for the language info. I have a feeling I have left a step out, but I haven't a clue. The page looks great in Opera, Netscape, IE, and Foxfire, but I KNOW it is supposed to have those tags.....

I have the book "Teach Yourself Visually Dreamweaver MX 2004" by Warner Gardner, but I don't really know what to look for, and maybe it's there but I'm not looking for the right words.

I need to get my new homepage up -- the old one is all screwed up. Can someone help?

Replies

Replied 19 Dec 2005 17:30:53
19 Dec 2005 17:30:53 Stefan P replied:
Hi there Irene,

I had a look at your HTML code. It's quite a mess at the moment, accounting for the poor presentation in browsers other than IE. I suggest you go back to the drawing board.

Make sure that when you start a new page in Dreamweaver that it is a "Basic page" &gt; "HTML".

Then set the page up as one table with three columns and one row. Set the table width to 100%. Set the side two columns to a fixed width (eg 100px). Next, enter your side content in the side columns, and main content in the middle. This should get you started.

Just a bit of advice, try getting more into CSS design. It will give you more control and flexibility over your designs. You should really be avoiding the use of tag attributes like FONT or SIZE, and use a css file to specify all this kind of information. Once you start this method of designing you'll never look back.

Good luck,

Stefan

Stefan - www.pash.biz

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DMX | ASP | VBScript | ACCESS | SQL Server | IIS5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply to this topic