Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                <!DOCTYPE html>
<html>

<head>
  <title>input tyeps</title>
</head>

<body>
  <form>
    <h2>text</h2>
    <label for="fname">First name:</label><br>
    <input type="text" id="fname" name="fname"><br>
    <label for="lname">Last name:</label><br>
    <input type="text" id="lname" name="lname">

    <hr>

    <h2>password</h2>
    <label for="username">Username:</label><br>
    <input type="text" id="username" name="username"><br>
    <label for="pwd">Password:</label><br>
    <input type="password" id="pwd" name="pwd">

    <hr>

    <h2>submit</h2>

    <label>Enter User name</label><br>
    <input type="text" name="firstname"><br>
    <label>Enter Password</label><br>
    <input type="Password" name="password"><br>
    <br><input type="submit" value="submit">

    <hr>

    <h2>reset</h2>
    <label>Enter User name</label><br>
    <input type="text" name="firstname"><br>
    <label>Enter Password</label><br>
    <input type="Password" name="password"><br>
    <br><input type="submit" value="submit">
    <br><input type="reset">

    <hr>

    <h2>radio</h2>
    <p>Kindly Select your favorite color</p>
    <input type="radio" name="color" value="red"> Red <br>
    <input type="radio" name="color" value="blue"> blue <br>
    <input type="radio" name="color" value="green">green <br>
    <input type="radio" name="color" value="pink">pink <br>

    <hr>

    <h2>checkbox</h2>
    <input type="checkbox" id="vehicle1" name="vehicle1" value="Bike">
    <label for="vehicle1"> I have a bike</label><br>
    <input type="checkbox" id="vehicle2" name="vehicle2" value="Car">
    <label for="vehicle2"> I have a car</label><br>
    <input type="checkbox" id="vehicle3" name="vehicle3" value="Boat">
    <label for="vehicle3"> I have a boat</label>

    <hr>

    <h2>Button type</h2>
    <input type="button" value="Click me " onclick="alert('you are learning HTML')">

    <hr>

    <h2>color</h2>
    <label for="favcolor">Select your favorite color:</label>
    <input type="color" id="favcolor" name="favcolor">

    <hr>

    <h2>Date</h2>
    <label for="birthday">Birthday:</label>
    <input type="date" id="birthday" name="birthday">

    <p>You can also use the min and max attributes to add restrictions to dates</p>

    <label for="datemax">Enter a date before 1980-01-01:</label>
    <input type="date" id="datemax" name="datemax" max="1979-12-31"><br><br>
    <label for="datemin">Enter a date after 2000-01-01:</label>
    <input type="date" id="datemin" name="datemin" min="2000-01-02">

    <hr>

    <h2>Datetime-local</h2>
    <label for="birthdaytime">Birthday (date and time):</label>
    <input type="datetime-local" id="birthdaytime" name="birthdaytime">

    <hr>

    <h2>Email</h2>
    <label for="email">Enter your email:</label>
    <input type="email" id="email" name="email">

    <hr>

    <h2>File</h2>
    <label for="myfile">Select a file:</label>
    <input type="file" id="myfile" name="myfile">

    <hr>

    <h2>Month</h2>
    <label for="bdaymonth">Birthday (month and year):</label>
    <input type="month" id="bdaymonth" name="bdaymonth">

    <hr>

    <h2>Number</h2>
    <label for="quantity">Quantity (between 1 and 5):</label>
    <input type="number" id="quantity" name="quantity" min="1" max="5">

    <p>The following example displays a numeric input field, where you can enter a value from 0 to 100, in steps of 10. The default value is 30</p>
    <label for="quantity">Quantity:</label>
    <input type="number" id="quantity" name="quantity" min="0" max="100" step="10" value="30">

    <hr>

    <h2>Range</h2>
    <label for="vol">Volume (between 0 and 50):</label>
    <input type="range" id="vol" name="vol" min="0" max="50">

    <hr>

    <h2>search</h2>
    <label for="gsearch">Search Google:</label>
    <input type="search" id="gsearch" name="gsearch">

    <hr>

    <h2>tel</h2>
    <label for="phone">Enter your phone number:</label>
    <input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{2}-[0-9]{3}">

    <h2>time</h2>
    <label for="appt">Select a time:</label>
    <input type="time" id="appt" name="appt">

    <hr>

    <h2>url</h2>
    <label for="homepage">Add your homepage:</label>
    <input type="url" id="homepage" name="homepage">

    <hr>

    <h2>Week</h2>
    <label for="week">Select a week:</label>
    <input type="week" id="week" name="week">
  </form>
</body>

</html>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console