Glassmorphic Credit Card Using HTML, CSS And JavaScript – Programming Hub
Tags: html, css, javascript, beginners
Published: 2023-02-14 02:43:21

Welcome to [Programming Hub](https://programminghub.co.in)! We’re excited to show you how to create a Glassmorphic Credit Card using HTML and CSS. This project is perfect for anyone who is just starting out with web development and wants to learn the basics of HTML and CSS.

HTML (HyperText Markup Language) is the standard markup language used to create web pages. It is used to structure the content on a web page, including text, images, and links. CSS (Cascading Style Sheets) is used to style the HTML content and make it look visually appealing.

In this project, we will use HTML to create the structure of the credit card and CSS to add the glass-like design elements. You will learn how to use CSS to change the font, color, and size of text, how to add background images and colors, and how to create basic animations.

This project is a fun and easy way to get started with web development and learn the basics of HTML and CSS. So, let’s get started and create a beautiful and functional Glassmorphic Credit Card!”
#Let's Cover HTML PART

```<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Glassmorphic Credit Card using HTML and CSS - @programminghub</title>
 
     
    <link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
    <!-- CSS -->
    <link rel="stylesheet" href="style.css">
    <script src="https://code.jquery.com/jquery-3.6.1.js"></script>
</head>
<body>
    <script src="script.js" type="text/Javascript"></script>
</body>
</html>```
##Paste the below code in your <body> tag
```<div class="box">
        <div class="mdl">
            <div class="circles">
                <div class="circle circle-1"></div>
                <div class="circle circle-2"></div>
            </div>
            <h1 class="title">
                Please enter your credit card <br />
                details below
            </h1>
 
            <div class="card">
                <form>
                    <div class="logo">
                        <?xml version="1.0" encoding="UTF-8"?>
                        <svg width="48px" height="48px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
                            <title>Group</title>
                            <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
                                <g id="Group" fill="#FFFFFF">
                                    <circle id="Oval" cx="16" cy="16" r="16"></circle>
                                    <circle id="Oval" cx="16" cy="48" r="16"></circle>
                                    <circle id="Oval" cx="48" cy="16" r="16"></circle>
                                    <circle id="Oval" cx="48" cy="48" r="16"></circle>
                                </g>
                            </g>
                        </svg>
                    </div>
                    <div class="card-number">
                        <label>Card Number</label>
                        <input id="card-number" placeholder="1234 1234 1234 1234" type="text" required maxlength="19" />
                        <span class="underline"></span>
                    </div>
                    <br />
                    <div class="group">
                        <div class="card-name">
                            <label>Card Holder</label>
                            <input id="card-name" placeholder="John Doe" type="text" required />
                            <span class="underline"></span>
                        </div>
                        <div class="expiration-date">
                            <label>Exp. Date</label>
                            <input id="card-exp" placeholder="10/25" type="text" maxlength="5" required />
                            <span class="underline"></span>
                        </div>
                        <div class="ccv">
                            <label>CCV</label>
                            <input id="card-ccv" placeholder="123" type="text" maxlength="3" required />
                            <span class="underline"></span>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>```
##output till now

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gw0hsp0itn5qbrn0s82e.png)


[continue reading...](https://programminghub.co.in/glassmorphic-credit-card-using-html-css-and-javascript-programming-hub/)