Skip to main content
Participant
August 5, 2017
Answered

All my content is registering inside the body tag, but my html isn't wrong. Help?

  • August 5, 2017
  • 2 replies
  • 401 views

OK, so first off I am very new to dreamweaver so I'm not very experienced at all.

That being said even I know something really isn't right here and I can't figure it out.

Any and all hmtl tags, no matter where I put them, all register as though they are inside the <body> for some reason.

This makes it impossible to style individual elements in css without adjusting everything at once. Also when I click on the body section in split view it only highlights the <body></body> html. It doesn't highlight everything, yet it still treats the entire html code as being the body for some reason.

I contacted adobe support about it and they checked a screenshot I sent of the code but they couldn't see the problem either. Any ideas?

My (supremely basic) html code is as follows:

<!doctype html>

<html>

<link href="Apex.css" rel="stylesheet" type="text/css">

<meta charset="utf-8">

<title>Untitled Document</title>

<head class="header">

<div class="logo">

<img src="Website logo 1(thin).png" width="35%" height="90" alt="Apex-Kingdom Home"/>

    </div>

   

<div class="gold-line">

<img src="gold-line.png" width="100%" height="3"/>

    </div>

   

<div class="links">       

      <table>

    <thead>

      <tr>

        <th scope="row">Home</th>

        <th scope="row">Features</th>

        <th scope="row">Gallery</th>

        <th scope="row">Event Coverage</th>

        <th scope="row">Motorsport</th>

        <th scope="row">About</th>

        <th scope="row">Contact Us</th>

      </tr>

    </thead>               

      </table>

    </div>           

    </head>

<body>

<h1>Latest Features</h1>

<div class="h1">

  <img src="gold-line.png" width="100%" height="3"/>

    </div>

<div class="rallyarticle" width="50%" height="auto">

    <img src="https://plus.wrc.com/assets/img/info_intro.png" width="80%" height="auto"/>

    <h2>  Is the WRC getting its spark back? </h2>

    <p> text etc </p>

    </div>

</body>

  </html>

This topic has been closed for replies.
Correct answer BenPleysier

When there are problems with using Dreamweaver, it is almost always because of coding errors. In this regard, have a look at the structure of your document

<!doctype html>

<html>

<meta charset="utf-8">

<title>Untitled Document</title>

<head class="header">

</head>

<body>

</body>

</html>

and that of a correctly structured document

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Untitled Document</title>

</head>

<body>

</body>

</html>

2 replies

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
August 5, 2017

When there are problems with using Dreamweaver, it is almost always because of coding errors. In this regard, have a look at the structure of your document

<!doctype html>

<html>

<meta charset="utf-8">

<title>Untitled Document</title>

<head class="header">

</head>

<body>

</body>

</html>

and that of a correctly structured document

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Untitled Document</title>

</head>

<body>

</body>

</html>

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participant
August 5, 2017

Never mind, I think I figured out what I'm doing wrong.

I'm putting div tags in the header which is causing the problem I think.

Wasn't aware you weren't meant to do that until I googled if that was potentially an issue.

I'll try moving the code out of the head into another tag.

I'm sure some of you were rolling your eyes when looking at this. Sorry. Adobe support probably should have noticed that though.

If anyone has any other input anyway, every little helps.

Nancy OShea
Community Expert
Community Expert
August 5, 2017

The document <head> tag is completely different from the <body> <header>. 

You need to close the <head> before you can open the <body> and insert a <header>.

Nancy

Nancy O'Shea— Product User & Community Expert