David Darnes created a <code-pen> web component that codes from scratch. The author discusses the idea of creating a custom element for embedding existing CodePen pens, making minor adjustments to the default embed code. The solution proposed includes simplifying the embed to an <embed-pen> element, though ultimately finds that using an iframe might be sufficient for embedding CodePen pens without losing essential functionality.
Sort: