A <p> tag (a block-level element) is being nested inside a <span> tag (an inline element) when using button tool, which is not valid HTML.