How To Template Boilerplate Html Codepen
CodePen is a popular online code editor used past many developers around the world. Information technology is also one of the recommended editors you tin utilise for the freeCodeCamp curriculum.
CodePen is only for frontend projects and supports HTML, CSS, and JavaScript. If you need to build a projection with a backend component, then you will demand to use a dissimilar editor.
In this article, I will talk over the post-obit:
- How to sign up for a free business relationship
- Differences betwixt Pens and Projects
- Bones Features of the Pen Editor
- How to fork a Pen
- How to add together preprocessors and packages to a Pen
- Basic Features of the Projection Editor
- What exercise yous get with the paid subscriptions?
- What are CodePen challenges?
How to sign upward for a complimentary account
When you visit the CodePen website, y'all will be able to login with the following options:
- Twitter business relationship
- Facebook account
- GitHub account
You can also signup with an email address where you will create a username and countersign.
Once you create the business relationship, you should receive an electronic mail from CodePen. Open up up that message and verify your email address.
Differences betwixt Pens and Projects
Pens
Afterwards verifying your email accost, you should be taken straight to the Pen editor. If the editor does not testify upward, then yous can click on Pen located on the left mitt side of the homepage.
A Pen editor is broken up into three sections of HTML, CSS and JavaScript.
This editor does not back up multiple HTML, CSS and JavaScript files. Pens are great for smaller scale creations.
If you are looking to write more than 5,000 lines of lawmaking so yous should consider a projection instead.
With the costless account, you tin have equally many Pens every bit you like.
Projects
If you want to create a project, then click on Project, which is located at the top left hand corner of the home page.
A project editor supports multiple HTML, CSS, and JavaScript files.
With the free account, you can only accept one project and 10 files. If y'all are interested in creating more projects, you will need to upgrade to the Pro business relationship.
Basic Features of the Pen Editor
Formatting Options
If you click on the dropdown arrow on whatever of the 3 editors, you will come across an option to format your code.
This is a helpful tool to ensure that your lawmaking is properly formatted and readable by other developers.
Y'all can also go to the Behavior section of Pen Settings, and cull the Format on Save option.
Clarify option
If you click on the dropdown arrow on whatsoever of the three editors, you lot will see an option to Analyze your code.
This is a tool that will assist you lot discover and prepare errors in your code.
Viewing Options
If you click on Modify View, then you can customize the editor layout or switch between the different view options.
Using the console
Located at the bottom left hand corner of the Pen is the panel. This is a helpful tool for debugging your code.
Adding links for the head section (HTML)
When you are creating your Pens, you do not accept to include the DOCTYPE, html, head, or body tags. All of that data is already built into the editor.
If you lot need to add links for the head section such every bit Font Crawly icons or Google Fonts, then you tin can add those in the head section of the HTML settings.
Adding CSS libraries and frameworks
CodePen has an option in the settings to add CSS libraries and frameworks to your Pens. Some of the libraries and frameworks include Bootstrap, Tailwind CSS, and Bulma.
Adding JavaScript libraries and frameworks
In the JavaScript settings, yous can add together popular libraries and frameworks such as React, Angular, and Vue to your Pens.
If you desire to share your Pens on various blogs and social media sites, then you can click on the Share push button located at the lesser right paw corner.
Export Pens
If you want to download your work to your reckoner, then you can use the Consign push button located at the bottom correct hand corner.
This will create a binder of all your files.
Embed Pens into blogs and articles
If you want to bear witness code examples in your blog posts, and so you tin can embed your CodePen creation in the page using the Embed button. This is located at the bottom right manus corner.
How to fork a Pen
To fork a Pen means to create a copy of that Pen. When you fork it, you lot volition accept access to all of the code and will exist able to change it to your liking.
Commencement go to the Pen you lot are interested in forking. And so click on the fork push button located at the lesser right manus corner.
Once you fork the Pen, then it will create a copy for your CodePen account. Make certain to hitting the salvage button and you can start modifying the code from at that place.
How to add preprocessors and packages to a Pen
In CodePen, you accept the pick to add HTML, CSS, or JavaScript preprocessors too as NPM packages to your Pens.
In the HTML settings, yous can choose from Haml, Markdown, Slim or Pug.
In the CSS settings, you can choose from Less, SCSS, Sass, Stylus or PostCSS.
In the JavaScript settings, you tin can choose from Babel, TypeScript, CoffeeScript or LiveScript.
Y'all can also add NPM packages such as react-bootstrap to your Pens.
Bones Features of the Project Editor
If you are working on a project that needs multiple files, then you should consider using the Project editor instead of the Pen editor. For the complimentary business relationship, you are allowed 1 project.
Templates
There are a few template options for HTML and CSS projects as well equally React projects.
If yous choose to upgrade to the paid subscription, then you will accept admission to the Tailwind CSS and Bootstrap templates.
Files and Directory
To add a new file or folder, click on the buttons located at the bottom left mitt corner.
Y'all can also upload files from your reckoner using the drag and drop feature located right above the New File button.
You tin add a full of 10 files to your project. If you lot demand to add more files, then you lot will have to upgrade to one of the paid packages.
Sharing projects
If you want to share your completed project on social media or blogging platforms, then you can click on the Share button located on the bottom correct manus corner.
Exporting projects
You can also export your project files and download them to your reckoner, using the Export button located on the bottom correct hand corner.
What practise you go with the paid subscriptions?
The paid subscription plans offering more CodePen features such as Collab mode, Nugget hosting, more than templates, and custom domains.
To larn more virtually the different paid subscription plans, please visit the CodePen PRO page.
What are CodePen challenges?
If you want to practice your frontend skills, then you can participate in the monthly challenges. Each month will accept a theme, and you lot volition practice skills with a new challenge each week.
Y'all will also have access to the previous monthly challenges.
I hope you enjoyed this article and best of luck on your frontend programmer journeying.
Learn to code for complimentary. freeCodeCamp'southward open up source curriculum has helped more 40,000 people get jobs as developers. Get started
How To Template Boilerplate Html Codepen,
Source: https://www.freecodecamp.org/news/how-to-use-codepen/
Posted by: johnsoncontly.blogspot.com

0 Response to "How To Template Boilerplate Html Codepen"
Post a Comment