That usually happens when you have an error in your html code. You are probably missing an opening or closing tag.
For example, if someone where to create a div and add only the opening tag <div> then the content, and forget the end tag – </div>, it throws the rest of the code off.