I tried to validate my website’s html code, and I got a collection of errors I don’t know why they are there. Starting with this first one, Dreamweaver even has a selection for src in the <embed> tags. It has a lot of problems with this line of code and almost everything in it.
I do have a question though about this code you published. the <!-- [if IE]> code block is left commented out. Won’t this eliminate the code from being recognized even if the user is browsing with Internet Explorer?
Taken in isolation, the code is ok, but it may not be playing nicely with other code on your page. Most likely, there is a missing closing tag on another element, which makes the validator choke when it sees a <ul> when it expects something else.
Regarding validation, don’t get too caught up in it. Validation is just a guide. It doesn’t mean the page won’t work. <embed> is supported in all browsers. The validator is just there to alert you to possible problems. But then it’s up to you to use your judgment over whether it’s really a problem or not. <embed> is not a problem.
The reason I have been looking at this closely is because I feel the JavaScript inside my <head> tag inside this index.php file is being ignored. Actually, I’m sure it’s being ignored. Would it solve the problem to move this script into an external file?
Javascript embedding looks OK to me, though I can’t tell what it’s supposed to be doing.
On the nested lists, you can’t embed a <ul> in another <ul>. It has to be embedded in an <li>. For example:
<ul type="square">
<li>Main Unordered Bulleted List item 1</li>
<li>Below is an example of HTML nested unordered list with bullets
<ul type="disc">
<li>nested list item 1</li>
<li>nested list item 2</li>
<li>Sub nested unordered list
<ul type="circle">
<li>sub nested list item 1</li>
<li>sub nested list item 2</li>
</ul>
</li>
</ul>
</li>
</ul>