Fix several markup errors in cookbook pages.

Two types of errors:
- ```active``` class outside of quotes
- ```<p>```tags closed with ```</h1>```