I imported a WordPress website in Eclipse and I got the error for “Duplicate tag (html)” and “Start tag (<audio>) not closed properly“.
The reason is that eclipse validator doesn’t handle well HTML tags within PHP.
One clean approach is to Create a PHP working set to selectively disable validation:
Refer to eclipse docs. Create a working set for the plugin/theme you are developing and then filter the contents in the problems view to that working set.
Another easier fix that is not so clean is to Disable/soften validation by type:
Project -> Properties -> Validation -> HTML Syntax
x Enable project specific settings
Document Type -> Duplicate DOCTYPE declaration (Change to Warning or Ignore)
Element -> Unclosed Start tag (Change to Warning or Ignore)