Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Invalid Mark-up Warning - Overlapping or Unclosed Tag

Guest
Mar 15, 2010 Mar 15, 2010

QUESTION:  When the following code is placed into a PHP document created by Dreamweaver an invalid mark-up warning is received and several of the HTML tags are highlighted with yellow.  According to the warning an overlapping or unclosed tag is present.  Unfortunately, I cannot find an overlapping or unclosed tag. 

In an effort to determine the presence or absence of extraneous characters, I cut the code, placed it into a text file, and removed all formatting.  I then pasted it back into the document, saved the document, and still the invalid mark-up warning occurred.

1) What is going on?

2) Should I just ignore it?

With the exception of an alignment problem of the headerInclude and Mainpage divisions everything appears fine.

CODE:

<body class="oneColElsCtr">

     <div id="container">

          <div id="headerInclude">

               <?php include("header.php"); ?>   

          <!-- end #headerInclude --></div>

          <div id="mainContent">

               <h1>The Include( ) Function</h1>   

               <p>This is the content of my Mainpage.  The header to my Mainpage is created with a server-side include using the PHP include( ) function.</p>

           <!-- end #mainContent --></div>

       <!-- end #container --></div>

</body>

Roddy

TOPICS
Server side applications
2.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 16, 2010 Mar 16, 2010

kiusau wrote:

QUESTION:  When the following code is placed into a PHP document created by Dreamweaver an invalid mark-up warning is received and several of the HTML tags are highlighted with yellow.  According to the warning an overlapping or unclosed tag is present.  Unfortunately, I cannot find an overlapping or unclosed tag.

Roddy, I can find nothing wrong with your code.  Have you tried rebooting Dreamweaver?

Roddy

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 16, 2010 Mar 16, 2010

kiusau wrote:

Roddy, I can find nothing wrong with your code.  Have you tried rebooting Dreamweaver?

Yes, that appears to have fixed the problem.

Many thanks for your helpful suggestion.

Roddy

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 16, 2010 Mar 16, 2010
LATEST

kiusau wrote:

Yes, that appears to have fixed the problem.

I am sorry to be so persistent, but the problem has returned.

This time, however, with new insight:

Though the mark-up error does not appear when the file is reopened after rebooting Dreamweaver, it does reappear when I open the file to be included.  In short, whatever is causing the mark-up error appears to require two files:  the one that contains the include( ) function, and the one that is included. 

What I eventually thought to be a fluke appears to be a reoccurring phenomenon.  Alas!

Any other suggestions?

Roddy

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Mar 16, 2010 Mar 16, 2010

This question was resolved by rebooting Dreamweaver.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines