How to fix: End tag for "variable" omitted, but omittag no was specified

Most Likely Cause and Fix

Your markup is based around the Typography Blogger template for the Blogger blogging service which itself contains invalid XHTML markup.

Read our in-depth article on fixing "variable" elements.

What This Error Means

This error is telling you that you're missing an end tag in your markup.

A little more specifically, it's telling you that you're missing an end tag on an element that is not allowed to lack an end tag.

Elements that are self-contained and don't directly relate to anything else can do without an end tag (if the version of HTML you're using allows this).

Image elements are self-contained and will usually be fine like this:

<img src="http://example.com/diagram.png" alt="Diagram">

Inline elements that surround content, such as anchors, either require an end tag to be considered valid or should have an end tag to remove ambiguity:

<a href="http://example.com/">Example</a> <!-- This end bit is important -->

How To Fix It

This error message is misleading out of context.

Read our in-depth article on fixing "variable" elements.

Discuss, Comment and Improve

Did this help you? Can this page be improved? Let us know!

comments powered by Disqus