Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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 ![]()
Copy link to clipboard
Copied
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 ![]()
Copy link to clipboard
Copied
This question was resolved by rebooting Dreamweaver.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more