{"id":490,"date":"2026-07-23T11:49:47","date_gmt":"2026-07-23T11:49:47","guid":{"rendered":"https:\/\/freepostfinder.com\/blog\/?p=490"},"modified":"2026-07-23T11:49:47","modified_gmt":"2026-07-23T11:49:47","slug":"how-to-create-your-first-pen-on-codepen-step-by-step-guide","status":"publish","type":"post","link":"https:\/\/freepostfinder.com\/blog\/how-to-create-your-first-pen-on-codepen-step-by-step-guide\/","title":{"rendered":"How to Create Your First Pen on CodePen (Step-by-Step Guide)"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"467\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-350-1024x467.png\" alt=\"\" class=\"wp-image-500\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-350-1024x467.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-350-300x137.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-350-768x350.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-350.png 1333w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">CodePen is a popular online code editor and front-end development platform that allows developers to write, test, and share HTML, CSS, and JavaScript directly within their web browsers. On CodePen, a &#8216;Pen&#8217; is the basic unit of a project, making it easy to create interactive web components, UI designs, animations, and coding experiments without installing any software.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide explains how to create your first Pen on CodePen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1: Sign In to CodePen<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Sign In to CodePen<\/strong><\/h3>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Open your web browser.<\/li>\n\n\n\n<li>Visit <strong><em>CodePen<\/em><\/strong>.<\/li>\n\n\n\n<li>Click <strong>Log In<\/strong>.<\/li>\n\n\n\n<li>Sign in to your CodePen account.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you don&#8217;t have an account, create one for free.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-351-1024x452.png\" alt=\"\" class=\"wp-image-501\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-351-1024x452.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-351-300x132.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-351-768x339.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-351.png 1335w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2: Click on Your work<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Click on your work to create your work.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"453\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-356-1024x453.png\" alt=\"\" class=\"wp-image-508\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-356-1024x453.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-356-300x133.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-356-768x340.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-356.png 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Click on &#8220;create.&#8221; <\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Click on &#8220;create&#8221; to open the editing or creating section.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"439\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-360-1024x439.png\" alt=\"\" class=\"wp-image-513\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-360-1024x439.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-360-300x129.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-360-768x329.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-360.png 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Create a &#8220;new pen.&#8221;<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Click on &#8220;new pen&#8221; for creating.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"439\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-362-1024x439.png\" alt=\"\" class=\"wp-image-515\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-362-1024x439.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-362-300x129.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-362-768x329.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-362.png 1343w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Understand the Editor Layout<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The CodePen editor is divided into different panels:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>HTML<\/strong> \u2013 Write the structure of your webpage.<\/li>\n\n\n\n<li><strong>CSS<\/strong> \u2013 Add styles and formatting.<\/li>\n\n\n\n<li><strong>JavaScript<\/strong> \u2013 Add interactivity and functionality.<\/li>\n\n\n\n<li><strong>Preview<\/strong> \u2013 View your project in real time.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">As you type your code, the preview updates automatically.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"367\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-364-1024x367.png\" alt=\"\" class=\"wp-image-518\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-364-1024x367.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-364-300x108.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-364-768x276.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-364.png 1357w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Write Your HTML Code<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enter your HTML in the <strong>HTML<\/strong> panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;h1&gt;Welcome to CodePen&lt;\/h1&gt;\n&lt;p&gt;This is my first Pen.&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The preview panel will immediately display the content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"377\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-365-1024x377.png\" alt=\"\" class=\"wp-image-520\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-365-1024x377.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-365-300x110.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-365-768x282.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-365.png 1357w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Add CSS Styling<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open the <strong>CSS<\/strong> panel and add styles.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>body {\n  font-family: Arial, sans-serif;\n  text-align: center;\n  background: #f5f5f5;\n}\n\nh1 {\n  color: #0066cc;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Your preview updates automatically as you edit the CSS.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"374\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-366-1024x374.png\" alt=\"\" class=\"wp-image-522\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-366-1024x374.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-366-300x109.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-366-768x280.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-366.png 1357w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 6: Add JavaScript <\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your project needs interactivity, write JavaScript in the <strong>JavaScript<\/strong> panel.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>console.log(\"My first CodePen project!\");<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can also build interactive buttons, animations, and dynamic web pages using JavaScript.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"379\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-367-1024x379.png\" alt=\"\" class=\"wp-image-523\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-367-1024x379.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-367-300x111.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-367-768x284.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-367.png 1391w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 7: Save Your Pen<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Click the <strong>Save<\/strong> button.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your Pen will be stored in your CodePen account and assigned a unique URL that you can access later.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"387\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-370-1024x387.png\" alt=\"\" class=\"wp-image-527\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-370-1024x387.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-370-300x113.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-370-768x290.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-370.png 1357w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 8: Share Your Pen<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After saving, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Copy the Pen URL.<\/li>\n\n\n\n<li>Share it with friends or colleagues.<\/li>\n\n\n\n<li>Embed it in a blog or website.<\/li>\n\n\n\n<li>Include it in your portfolio.<\/li>\n\n\n\n<li>Share it on social media.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Public Pens can be viewed by anyone with the link.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"469\" src=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-371-1024x469.png\" alt=\"\" class=\"wp-image-528\" srcset=\"https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-371-1024x469.png 1024w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-371-300x137.png 300w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-371-768x352.png 768w, https:\/\/freepostfinder.com\/blog\/wp-content\/uploads\/2026\/07\/image-371.png 1330w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Introduction CodePen is a popular online code editor and front-end development platform that allows developers to write, test, and share HTML, CSS, and JavaScript directly within their&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[128,129,132,131,130],"class_list":["post-490","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-codepen","tag-codepen-guide","tag-codepen-tutorial","tag-create-your-first-pen-on-codepen","tag-how-to-create-your-first-pen-on-codepen"],"_links":{"self":[{"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/comments?post=490"}],"version-history":[{"count":1,"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/posts\/490\/revisions"}],"predecessor-version":[{"id":530,"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/posts\/490\/revisions\/530"}],"wp:attachment":[{"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/media?parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/categories?post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/freepostfinder.com\/blog\/wp-json\/wp\/v2\/tags?post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}