AFlyingLemon
AFlyingLemon

Reputation: 53

Umbraco: 'Encountered end tag "html" with no matching start tag. Are your start/end tags properly balanced?'

Using Umbraco and have set up a page template and created a page in the Content section. However when I try to view the page I have created, I am getting the following error:

"Encountered end tag "html" with no matching start tag. Are your start/end tags properly balanced?"

Even though the code has opening and closing html tags.

If I remove both html tags, I get the same error but for the tags. If I remove them it changes to tags and so on...

Anyone encountered this issue before?

Upvotes: 1

Views: 592

Answers (2)

amelvin
amelvin

Reputation: 9051

Without seeing the code this is a tricky one to answer. The most obvious answer is that you are inheriting templates & you've got an additional start or close html tag somewhere in the inheritance.

EDIT You could now put your html tags back in & change your template (in the umbraco back office) so that doesn't inherit from anything & see if the template alone works - if so your template inheritance is wrong.

Umbraco 6 template that doesn't inherit: enter image description here

Umbraco 4 template that doesn't inherit: enter image description here

Upvotes: 0

Lee Frankland
Lee Frankland

Reputation: 11

I would suggest looking at the top of the template you have created and make sure its the first tag on your page. Make sure you haven't included the opening tag inside an if statement and make sure the opening and closing html tags are in the very top template not in the templates inheriting from the master.

Upvotes: 1

Related Questions