DEV Community

Cover image for Pricing cards using HTML and CSS
Piyush | Coding Torque
Piyush | Coding Torque

Posted on • Originally published at codingtorque.com

Pricing cards using HTML and CSS

Hello Guys! Welcome to Coding Torque. In this blog, I'm going to explain to you how to make a Pricing cards using HTML and CSS. This will be a step-by-step guide. Let's get started ๐Ÿš€.

Step 1: Import Fontawesome CDN

Import the font awesome CDN in our HTML <head> tag. fontawesome is a library that is used for icons on a website.

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
        integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
        crossorigin="anonymous" />
Enter fullscreen mode Exit fullscreen mode

Step 2 : HTML Code

<!DOCTYPE html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Font Awesome Icons  -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
        integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA=="
        crossorigin="anonymous" />

    <title>Pricing Cards - @code.scientist x @codingtorque</title>
</head>

<body>
    <div class="container">
        <h5 class="badge">Pricing Plans</h5>
        <h1 class="heading">Choose Your Best Pricing Plan</h1>
        <div class="card_group">
            <div class="pricing-card">
                <i class="fab fa-telegram-plane"></i>
                <span>Basic</span>
                <h4 class="price">$4.99</h4>
                <ul class="package_list">
                    <li>Unlimited Website</li>
                    <li>Unlimited Storage</li>
                    <li>Free SSL Certificate</li>
                    <li>24/7 Support</li>
                </ul>
                <a href="#" class="get_started_btn">Get Started</a>
            </div>
            <div class="pricing-card">
                <i class="fas fa-plane"></i>
                <span>Intermediate</span>
                <h4 class="price">$12.99</h4>
                <ul class="package_list">
                    <li>Unlimited Website</li>
                    <li>Unlimited Storage</li>
                    <li>Free SSL Certificate</li>
                    <li>24/7 Support</li>
                </ul>
                <a href="#" class="get_started_btn">Get Started</a>
            </div>
            <div class="pricing-card">
                <i class="fas fa-rocket"></i>
                <span>Advanced</span>
                <h4 class="price">$19.99</h4>
                <ul class="package_list">
                    <li>Unlimited Website</li>
                    <li>Unlimited Storage</li>
                    <li>Free SSL Certificate</li>
                    <li>24/7 Support</li>
                </ul>
                <a href="#" class="get_started_btn">Get Started</a>
            </div>
        </div>
    </div>
</body>

</html>
Enter fullscreen mode Exit fullscreen mode

Output Till Now

Pricing cards using HTML and CSS

continue reading

Top comments (0)