Collection of free HTML and CSS form code examples from CodePen, GitHub, and other resources

Explore a collection of free HTML and CSS form code examples from CodePen, GitHub, and other resources to create stylish and functional forms for your website.

CSS-Only Floating Labels

Author:
Kevin Canlas | July 13, 2021
Made with:
HTML / CSS (SCSS)

About a code

We'll be using several pseudo-selectors to create this effect. This is the only way to achieve this effect without any JavaScript.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Contact Us Form

Author:
Metty | June 8, 2021
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Bootstrap 5 Login Form

Author:
Thomas | May 25, 2021
Made with:
HTML / CSS (SCSS)

About a code

Bootstrap 5 login form with Glassmorphism.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
bootstrap.css
Nice Forms in CSS

Nice Forms in CSS

Author:
Niels Voogt | March 9, 2021
Made with:
HTML / CSS (SCSS)

About a code

Nice Forms - CSS base for forms and inputs. In a nutshell: it provides a sensible input styling 'reset'; get nice looking forms with zero effort; easily customizable with css-variables; perfect for rapid prototyping or tweak it and make it your own; no hacks or unnecessary elements, pure semantics.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Animated Login Form

Author:
Stack Findover | January 2, 2021
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Neumorphic Form

Neumorphic Form

Author:
Pratham | January 2, 2021
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Glassmorphic Sign in Form

Glassmorphic Sign in Form

Author:
Shounak Das | December 10, 2020
Made with:
HTML / CSS (SCSS) / JS

About a code

A simple, easy sign in / log in form made with pure CSS, based on glassmorphism.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Placeholders

Author:
Mikael Ainalem | November 12, 2020
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Slicing Design Subcribe Modal

Slicing Design Subcribe Modal

Author:
Dicky AL Fattah | October 2, 2020
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

CSS Newsletter with Animated Floating Input Labels

Author:
Bilal.Rizwaan | October 1, 2020
Made with:
HTML / CSS

About a code

Move placeholder above the input on focus.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Login Form

Author:
@BrawadaCom | October 1, 2020
Made with:
HTML / CSS (Sass)

About a code

Login form. SVG animation.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Form

Form

Author:
Arefeh hatami | September 30, 2020
Made with:
HTML (Pug) / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css
File Upload

File Upload

Author:
Håvard Brynjulfsen | September 27, 2020
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-
Card Component with Floating Labels

Card Component with Floating Labels

Author:
Håvard Brynjulfsen | July 17, 2020
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Log In / Sign Up

Author:
Ivan Grozdic | July 4, 2020
Made with:
HTML / CSS

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
bootstrap.css, unicons.css

Login Form

Author:
Soufiane Khalfaoui HaSsani | April 8, 2020
Made with:
HTML / CSS

About a code

Login form with floating placeholder and light button.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
Pupassure Sign Up Form

Pupassure Sign Up Form

Author:
Ricky Eckhardt | March 3, 2020
Made with:
HTML (Haml) / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
font-awesome.css
Abstract Sign Up Form

Abstract Sign Up Form

Author:
Ricky Eckhardt | March 1, 2020
Made with:
HTML (Slim) / CSS (Sass)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-
Neomorphic Form

Neomorphic Form

Author:
Swapnil | January 28, 2020
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
ionicons.css

Less Annoying Form

Author:
Andy Fitzsimon | January 12, 2020
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Flexbox Responsive Form

Author:
Adam Argyle | January 6, 2020
Made with:
HTML / CSS (PostCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Animated Login Form

Author:
Alvaro Montoro | December 21, 2019
Made with:
HTML / CSS

About a code

This animated login form is built just with HTML and CSS. No SVG, no JavaScript, no GreenSock. The character smiles when the login form is correct.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Transparent Material Login Form

Author:
alphardex | October 23, 2019
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
no
Dependencies:
-

Responsive Contact Form

Author:
Amli | July 11, 2019
Made with:
HTML / CSS (SCSS)

About a code

Only SCSS/CSS.

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
font-awesome.css
Login Page

Login Page

Author:
Mert Cukuren | June 30, 2019
Made with:
HTML / CSS (SCSS)

Compatible browsers:
Chrome, Edge, Firefox, Opera, Safari
Responsive:
yes
Dependencies:
-

Discover Our Extensive Snippet Library

This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.

HTML Snippets.

Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.

CSS Snippets.

Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations

JavaScript Snippets.

Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms

Bootstrap Snippets.

Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components

Tailwind Snippets.

Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to

jQuery Snippets.

Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations

React Snippets.

Build robust, component-based user interfaces with our React snippets. From state management to lifecycle methods,

Vue Snippets.

Streamline Vue.js development with our collection of snippets for creating components, managing state, and handling events.

Ready to set your Brand ablaze?

Let's craft a visual identity that ignites passion and loyalty. ✨