 <p>You seem to be outputting <em>everything</em> in your view.</p> <p>If you're using a layout (which you should in normal situations), you'll end up with a double <code>&lt;html&gt;&lt;head&gt;</code> in your page, causing your html to be invalid.</p> <p>In most situations, your view should only contain the content for a specific <em>action</em> in a controller. General content, including the <code>&lt;head&gt;</code> of your HTML should be in the <em>layout</em></p> <p>Please check the generated output by choosing <em>view source</em> in your browser, and read this chapter to understand how CakePHP composes its output using views, elements and layouts: <a href="http://book.cakephp.org/2.0/en/views.html#view-templates" rel="nofollow">Views</a></p>