Heads up! This blog post hasn't been updated in over 2 years. CodePen is an ever changing place, so if this post references features, you're probably better off checking the docs. Get in touch with support if you have further questions.
You can view the “raw” HTML, CSS and JavaScript of any Pen by appending a URL extension. That means you can also use a Pen as an external resource of any other Pen, or Project!
We’ve seen some slight confusion here though, specifically in regards to caching. If you make a change to the Pen that is being used as a resource, you need to save it for the changes to be reflected by whatever is using that resource. Without saving it, the old code will be cached.
Here’s a little video that shows how it all works: