{"id":26582,"date":"2016-06-09T23:01:50","date_gmt":"2016-06-09T15:01:50","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=26582"},"modified":"2017-11-23T19:24:33","modified_gmt":"2017-11-23T11:24:33","slug":"codepen-tips-beginners","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/","title":{"rendered":"10 Codepen Tips For Beginners"},"content":{"rendered":"<p><a href=\"https:\/\/codepen.io\/\" target=\"_blank\" rel=\"nofollow\">Codepen<\/a> is a super easy and popular site to <strong><em>pen<\/em> down a working front-end code combo<\/strong> right away. If you don\u2019t know what Codepen is or haven\u2019t heard of it before, it\u2019s basically an <strong>online source code playground<\/strong> (let\u2019s call it <em>OSCP<\/em> to sound  nerdier) for the three musketeers of front-end coding; <strong>HTML<\/strong>, <strong>CSS<\/strong> and <strong>JavaScript<\/strong>.<\/p>\n<p>There are other similar OSCPs out there like <a href=\"https:\/\/jsfiddle.net\/\" target=\"_blank\">JSFiddle<\/a>, <a href=\"https:\/\/jsbin.com\/?html,output\" target=\"_blank\">JS Bin<\/a>, <a href=\"https:\/\/cssdeck.com\/\" target=\"_blank\">CSSDeck<\/a> & <a href=\"https:\/\/dabblet.com\/\" target=\"_blank\">Dabblet<\/a>. Codepen is definitely one of the most well-known among  front-end developers. Without further ado, let\u2019s jump right into some <strong>basic and useful tips<\/strong> for using Codepen.<\/p>\n<h2>1. Run Button<\/h2>\n<p>If you are not a fan of the way the output of your code in Codepen keeps refreshing <em>while<\/em> you\u2019re typing, you can <strong>opt out of the \u201cAuto Update Preview\u201d option<\/strong>, and get a <span class=\"key\">Run<\/span> button instead. When you click it, you will be able to see and update your code\u2019s output <strong>whenever you want to<\/strong>.<\/p>\n<p>This is also a great option if you\u2019re working with a code the output of which <strong>goes through a lot of layout changes<\/strong>, and repaints every time it\u2019s updated, resulting in slowness.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-show-run-btn.gif\" alt=\"Run button GIF\"><\/figure>\n<h2>2. Number Increment\/Decrement<\/h2>\n<p>Increase or decrease the numbers in your code in Codepen <strong>without typing in the new numbers<\/strong>. All you have to do is use the key combination of <span class=\"key\">Ctrl<\/span>\/<span class=\"key\">Cmd<\/span> <strong>and<\/strong> <span class=\"key\">Up<\/span> and <span class=\"key\">Down<\/span> arrows.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-number-incdec.gif\" alt=\"Number change GIF\"><\/figure>\n<h2>3. Multiple Cursors<\/h2>\n<p>You can put cursors at <strong>multiple points in the source code<\/strong>, then type or edit at all those points <strong>at the same time<\/strong>. This only works if you\u2019re inputting the same info, and reduces the need for copy-pasting. Just hold down the <span class=\"key\">Ctrl<\/span>\/<span class=\"key\">Cmd<\/span> key while clicking at those multiple points.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-multiple-cursors.gif\" alt=\"Multiple cursors GIF\"><\/figure>\n<h2>4. Different Colored Console Messages<\/h2>\n<p>The <code><a href=\"https:\/\/developer.mozilla.org\/en\/docs\/Web\/API\/console\" target=\"_blank\">Console<\/a><\/code> JavaScript object has <strong>a few more methods<\/strong> besides <code><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Console\/log\" target=\"_blank\">log()<\/a><\/code> to allow you to <strong>print things in the web console<\/strong>.<\/p>\n<p>You can use the <code><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Console\/info\" target=\"_blank\">info()<\/a><\/code>, <code><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Console\/warn\" target=\"_blank\">warn()<\/a> <\/code> and <code><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Console\/error\" target=\"_blank\">error()<\/a><\/code> methods for <strong>information<\/strong>, <strong>warning<\/strong> and <strong>error<\/strong>. Typically, web consoles   color these messages type-wise, or will display an appropriate icon beside them (like a warning sign for the warning message) <strong>for easier recognition<\/strong>.<\/p>\n<p><strong>Codepen has its own console<\/strong> which you can open by clicking on the <span class=\"key\">Console<\/span> button at the bottom left corner. It is ideal for a quick check of console messages <strong>without having to open the browser\u2019s console<\/strong>. This console distinguishes the different types of console messages <strong>with different background colors<\/strong>.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-colored-console-msgs.gif\" alt=\"Colored console GIF\"><\/figure>\n<h2>5. Export<\/h2>\n<p>Once saved, a <strong>pen<\/strong> (a single Codepen entity) can be exported <strong>as a ZIP file<\/strong> with all of its  in HTML, CSS and JS code in files. There\u2019s also an option to save the pen <strong>as a Github gist<\/strong> (a Git repository). You can find the <span class=\"key\">Export<\/span> button at the right bottom corner of each pen.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-export.gif\" alt=\"Export GIF\"><\/figure>\n<h2>6. Find & Replace<\/h2>\n<p><strong>Find & Replace<\/strong> \u2013 an essential operation for folks who tend to rename their variable names every now and then. <span class=\"key\">Ctrl<\/span>\/<span class=\"key\">Cmd<\/span> + <span class=\"key\">Shift<\/span> + <span class=\"key\">F<\/span> is the key combo to <strong>open the \u201cFind & Replace\u201d dialog<\/strong>.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-find-and-replace.gif\" alt=\"Find and replace GIF\"><\/figure>\n<h2>7. Emmet Tab Trigger<\/h2>\n<p>Do you know about  tab triggers for <a href=\"https:\/\/www.hongkiat.com\/blog\/html-css-faster-emmet\/\" target=\"_blank\">Emmet coding<\/a><a href=\"https:\/\/www.hongkiat.com\/blog\/html-css-faster-emmet\/\" target=\"_blank\"><\/a>? <a href=\"https:\/\/emmet.io\/\" target=\"_blank\">Emmet<\/a> is a productivity tool for front-end developers that allows you to <strong>type skeleton code that later gets extended<\/strong>. To do this in Codepen, just quickly type the <a href=\"https:\/\/docs.emmet.io\/abbreviations\/\" target=\"_blank\">appropriate abbreviation<\/a> into the editor, press the <span class=\"key\">Tab<\/span> key, and the complete code appears at once. <strong>Only available for HTML<\/strong> in Codepen.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-tab-trigger.gif\" alt=\"Tab trigger GIF\"><\/figure>\n<h2>8. Get Individual Code Files<\/h2>\n<p>If you use the Export option like mentioned before, you will get all three files (HTML, CSS and JS) of your pen. But if you are interested in <strong>only one or two of those files<\/strong>, and want to download them individually, there\u2019s an option for that too in Codepen.<\/p>\n<p>Once logged into Codepen, go to your pen, and click on the <span class=\"key\">Change View<\/span> button in the top right corner. At the bottom of the dropdown list, you will see the <strong>direct download links for the individual files<\/strong>.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-export-indivudual-file.gif\" alt=\"Download individual file GIF\"><\/figure>\n<h2>9. Inspect JavaScript Variables<\/h2>\n<p>As Codepen\u2019s <a href=\"https:\/\/blog.codepen.io\/2016\/01\/27\/new-feature-javascript-console\/\" target=\"_blank\">JavaScript console<\/a> connects to the JavaScript saved in your pen, you can also use it to quickly test your JavaScript. This feature comes especially handy in <strong>inspecting JS variables<\/strong>, as this way you <strong>don\u2019t have to insert extra console or alert messages<\/strong> into the original code solely for testing purposes.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-inspect-js-var.gif\" alt=\"JS variable inspection GIF\"><\/figure>\n<h2>10. Turn Pen to Template<\/h2>\n<p>If you tend to start most of your pens with the <strong>same set of code<\/strong>, you can use a template to <strong>save those repeating code<\/strong>. To turn a pen into template, <strong>tick the Template option<\/strong> under the Settings menu. When you later create a new pen, you can <strong>start with your saved template<\/strong> by clicking the down arrow in the right side of the <span class=\"key\">New Pen<\/span> button. It will open a dropdown list with all your saved templates to choose from.<\/p>\n<figure><img decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-template.gif\" alt=\"Pen template GIF\"><\/figure>","protected":false},"excerpt":{"rendered":"<p>Codepen is a super easy and popular site to pen down a working front-end code combo right away. If you don\u2019t know what Codepen is or haven\u2019t heard of it before, it\u2019s basically an online source code playground (let\u2019s call it OSCP to sound nerdier) for the three musketeers of front-end coding; HTML, CSS and&hellip;<\/p>\n","protected":false},"author":145,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392],"tags":[511],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>10 Codepen Tips For Beginners - Hongkiat<\/title>\n<meta name=\"description\" content=\"Codepen is a super easy and popular site to pen down a working front-end code combo right away. If you don&#039;t know what Codepen is or haven&#039;t heard of it\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"10 Codepen Tips For Beginners\" \/>\n<meta property=\"og:description\" content=\"Codepen is a super easy and popular site to pen down a working front-end code combo right away. If you don&#039;t know what Codepen is or haven&#039;t heard of it\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2016-06-09T15:01:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-11-23T11:24:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-show-run-btn.gif\" \/>\n<meta name=\"author\" content=\"Preethi Ranjit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Preethi Ranjit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/\"},\"author\":{\"name\":\"Preethi Ranjit\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e981676afae36d1ff5feb75094950ab3\"},\"headline\":\"10 Codepen Tips For Beginners\",\"datePublished\":\"2016-06-09T15:01:50+00:00\",\"dateModified\":\"2017-11-23T11:24:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/\"},\"wordCount\":793,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/codepen-tips-beginners\\\/codepen-tip-show-run-btn.gif\",\"keywords\":[\"Web Developers\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/\",\"name\":\"10 Codepen Tips For Beginners - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/codepen-tips-beginners\\\/codepen-tip-show-run-btn.gif\",\"datePublished\":\"2016-06-09T15:01:50+00:00\",\"dateModified\":\"2017-11-23T11:24:33+00:00\",\"description\":\"Codepen is a super easy and popular site to pen down a working front-end code combo right away. If you don't know what Codepen is or haven't heard of it\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/codepen-tips-beginners\\\/codepen-tip-show-run-btn.gif\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/codepen-tips-beginners\\\/codepen-tip-show-run-btn.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/codepen-tips-beginners\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"10 Codepen Tips For Beginners\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e981676afae36d1ff5feb75094950ab3\",\"name\":\"Preethi Ranjit\",\"description\":\"A .NET developer with a JavaScript background, Preethi is expert in front-end coding, JavaScript, HTML, and CSS.\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/preethi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"10 Codepen Tips For Beginners - Hongkiat","description":"Codepen is a super easy and popular site to pen down a working front-end code combo right away. If you don't know what Codepen is or haven't heard of it","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/","og_locale":"en_US","og_type":"article","og_title":"10 Codepen Tips For Beginners","og_description":"Codepen is a super easy and popular site to pen down a working front-end code combo right away. If you don't know what Codepen is or haven't heard of it","og_url":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2016-06-09T15:01:50+00:00","article_modified_time":"2017-11-23T11:24:33+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-show-run-btn.gif","type":"","width":"","height":""}],"author":"Preethi Ranjit","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Preethi Ranjit","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/"},"author":{"name":"Preethi Ranjit","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e981676afae36d1ff5feb75094950ab3"},"headline":"10 Codepen Tips For Beginners","datePublished":"2016-06-09T15:01:50+00:00","dateModified":"2017-11-23T11:24:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/"},"wordCount":793,"commentCount":5,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-show-run-btn.gif","keywords":["Web Developers"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/","url":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/","name":"10 Codepen Tips For Beginners - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-show-run-btn.gif","datePublished":"2016-06-09T15:01:50+00:00","dateModified":"2017-11-23T11:24:33+00:00","description":"Codepen is a super easy and popular site to pen down a working front-end code combo right away. If you don't know what Codepen is or haven't heard of it","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-show-run-btn.gif","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/codepen-tips-beginners\/codepen-tip-show-run-btn.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/codepen-tips-beginners\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"10 Codepen Tips For Beginners"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e981676afae36d1ff5feb75094950ab3","name":"Preethi Ranjit","description":"A .NET developer with a JavaScript background, Preethi is expert in front-end coding, JavaScript, HTML, and CSS.","url":"https:\/\/www.hongkiat.com\/blog\/author\/preethi\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-6UK","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/26582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/145"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=26582"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/26582\/revisions"}],"predecessor-version":[{"id":41925,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/26582\/revisions\/41925"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=26582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=26582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=26582"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=26582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}