HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
{
"curriculum": [
{
"id": 22,
"platform": "YouTube",
"platformIndex": 2,
"title": "How I'd Learn Front End Web Development (If I Could Start Over)",
"link": "https://www.youtube.com/watch?v=shN0HNnvaoM&pp=ygUZZnJvbnQtZW5kIHdlYiBkZXZlbG9wbWVudA%3D%3D",
"description": "This video provides an overview and strategy for learning front-end web development effectively."
},
{
"id": 15,
"platform": "Udemy",
"platformIndex": 1,
"title": "The Fundamentals of Web Front-End Development",
"link": "https://udemy.com/course/crashing-course-for-web-front-end-development/",
"description": "This course covers HTML, CSS, BootStrap, JavaScript, and jQuery, providing a solid foundation in front-end design."
},
{
"id": 21,
"platform": "YouTube",
"platformIndex": 2,
"title": "Frontend web development - a complete overview",
"link": "https://www.youtube.com/watch?v=WG5ikvJ2TKA&pp=ygUZZnJvbnQtZW5kIHdlYiBkZXZlbG9wbWVudA%3D%3D",
"description": "Overview of every technology needed to build a front-end web application, covering languages, frameworks, bundlers, and more."
},
{
"id": 8,
"platform": "Udemy",
"platformIndex": 1,
"title": "CSS - The Complete Guide 2024 (incl. Flexbox, Grid & Sass)",
"link": "https://udemy.com/course/css-the-complete-guide-incl-flexbox-grid-sass/",
"description": "Learn advanced CSS skills including Flexbox, Grid, and Sass, essential for any front-end developer."
},
{
"id": 4,
"platform": "Udemy",
"platformIndex": 1,
"title": "Become a Certified Web Developer: HTML, CSS and JavaScript",
"link": "https://udemy.com/course/become-a-certified-web-developer/",
"description": "This course dives deep into HTML, CSS, and JavaScript, offering a comprehensive understanding of web programming."
},
{
"id": 27,
"platform": "YouTube",
"platformIndex": 2,
"title": "Learn web development as an absolute beginner",
"link": "https://www.youtube.com/watch?v=ysEN5RaKOlA&pp=ygUZZnJvbnQtZW5kIHdlYiBkZXZlbG9wbWVudA%3D%3D",
"description": "Want to learn to code? This video will cover a roadmap for beginners, with all the basic web development skills you will need to get started."
},
{
"id": 17,
"platform": "Udemy",
"platformIndex": 1,
"title": "Modern Frontend Web Development: Angular, Javascript JS",
"link": "https://udemy.com/course/modern-web-development-from-zero-to-advanced/",
"description": "Advanced modern web development with Angular, JavaScript JS, Bootstrap, HTML, CSS. Become a front-end web development master."
},
{
"id": 2,
"platform": "Udemy",
"platformIndex": 1,
"title": "The Web Developer Bootcamp 2024",
"link": "https://udemy.com/course/the-web-developer-bootcamp/",
"description": "10 Hours of React just added. Become a Developer With ONE course - HTML, CSS, JavaScript, React, Node, MongoDB, and More!"
},
{
"id": 26,
"platform": "YouTube",
"platformIndex": 2,
"title": "Full Stack Web Development for Beginners (Full Course on HTML, CSS, JavaScript, Node.js, MongoDB)",
"link": "https://www.youtube.com/watch?v=nu_pCVPKzTk&pp=ygUZZnJvbnQtZW5kIHdlYiBkZXZlbG9wbWVudA%3D%3D",
"description": "Learn full-stack web development in this full course for beginners. First, you will learn the basics of HTML, CSS, and JavaScript."
},
{
"id": 11,
"platform": "Udemy",
"platformIndex": 1,
"title": "Angular 18 Front End Development Beginner to Master 2024",
"link": "https://udemy.com/course/angular-front-end-beginner-to-master/",
"description": "Learn Front End Web Development with Angular from Mac, Linux, or Windows!"
},
{
"id": 5,
"platform": "Udemy",
"platformIndex": 1,
"title": "Front End Web Development Bootcamp - Build a Twitter Clone",
"link": "https://udemy.com/course/front-end-web-development-bootcamp-build-a-twitter-clone/",
"description": "Build a Twitter Clone using HTML, CSS, CSS Flexbox, CSS Grid, and JavaScript. Master your Front End Web Developer Skills."
},
{
"id": 1,
"platform": "Udemy",
"platformIndex": 1,
"title": "The Complete 2024 Web Development Bootcamp",
"link": "https://udemy.com/course/the-complete-web-development-bootcamp/",
"description": "Become a Full-Stack Web Developer with just ONE course. HTML, CSS, JavaScript, Node, React, PostgreSQL, Web3, and DApps."
},
{
"id": 29,
"platform": "YouTube",
"platformIndex": 2,
"title": "5 Front-end Development Skills to Land Your First Job",
"link": "https://www.youtube.com/watch?v=-_X6PhkjpzU&pp=ygUZZnJvbnQtZW5kIHdlYiBkZXZlbG9wbWVudA%3D%3D",
"description": "Practical advice and skills needed to secure a job in front-end web development."
},
{
"id": 13,
"platform": "Udemy",
"platformIndex": 1,
"title": "*UPDATED* Web Forms - 2024 Build & Master Web forms",
"link": "https://udemy.com/course/master-web-forms/",
"description": "Master web forms. Complete. From HTML design to sending to servers. Crucial for all front-end development. Novice to Pro."
},
{
"id": 24,
"platform": "YouTube",
"platformIndex": 2,
"title": "Frontend Web Development Bootcamp Course (JavaScript, HTML, CSS)",
"link": "https://www.youtube.com/watch?v=zJSY8tbf_ys&pp=ygUZZnJvbnQtZW5kIHdlYiBkZXZlbG9wbWVudA%3D%3D",
"description": "A comprehensive bootcamp covering JavaScript, HTML, and CSS to solidify your knowledge."
},
{
"id": 37,
"platform": "YouTube",
"platformIndex": 2,
"title": "The Unfiltered Thought Process of a Pro Front-end Dev",
"link": "https://www.youtube.com/watch?v=oJYFRZ4cj2Q&pp=ygUZZnJvbnQtZW5kIHdlYiBkZXZlbG9wbWVudA%3D%3D",
"description": "This video provides insights into the thought process of a professional front-end developer, offering motivation and strategies for aspiring developers."
}
]
}
Also see: Tab Triggers