Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

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.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

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.

+ add another resource


Add Packages

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.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


	<h1>Join the Sith ar</h1>
 <label for="given-name">Given name
  <input type="text" id="given-name" placeholder="Darth" autocomplete="off" required minlength="3"/>

 <label for="surname">Surname
  <input type="text" id="surname" placeholder="Vader" autocomplete="off" required minlength="3"/>

 <div class="buttons">
	<input type="reset" value="Undo">
  <input type="submit" value="Join">	 
	<input type="submit" value="Join">



*::after {
 box-sizing: border-box;

body {
 height: 100%;

body {
 display: flex;
 justify-content: center;
 align-items: center;

form {
 padding: 2rem;
 border: 0.5rem solid #333;
 border-radius: 0.2rem;
 background-color: white;

h1 {
 margin-bottom: 3rem;

label {
 display: block;
 text-align: right;
 margin-bottom: 1rem;

input[type="text"] {
 margin-left: 0.5rem;
 padding: 0.2rem;
 border: 1px solid #333;

.buttons {
 margin-top: 3rem;
 display: flex;
 justify-content: flex-end;

.buttons > input {
 padding: 0.5rem;

/* Add new CSS here */



	- dont edit the HTML
	- dont edit the existing CSS
	- only add new CSS rulesets

	- give inputs a red border, when they are not valid	
	- give the form a colorful border, when all required fields are valid	
	- fade out submit button, when form is invalid	
	- fix the typo in the heading, it should be "Join the Sith army!"
	- hide the duplicate "join" button
	- add some spacing between the "Undo" and "Join" button