
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
How to Create a Pricing Table using HTML and CSS?
We can create a basic pricing table using just HTML and CSS. A pricing table can be a useful feature to implement in different websites where the purchase of commodities is involved, for example, an e-commerce web application, or travel websites. Let’s learn to create a such table with the help of the example below −
Example
We will first create an HTML layout of the table in the following index.html file, and then add stylings to it.
<html lang="en"> <head> <title>How to Create Pricing Table using HTML and CSS?</title> <style> .cards { display: flex; gap: 10px; } .cards ul { list-style-type: none; border: 1px solid; margin: 0; padding: 0; } .cards ul li { border-bottom: 1px solid; text-align: center; padding: 10px; } .cards ul .header { background-color: black; color: white; font-size: 1rem; } .cards ul .button { background-color: green; cursor: pointer; color: white; padding: 5px 10px; } </style> </head> <body> <h3>How to Create Pricing Table using HTML and CSS?</h3> <div class="cards"> <ul class="gold"> <li class="header">Gold</li> <li>$9.99</li> <li>10 API calls per day</li> <li class="button">Sign up</li> </ul> <ul class="silver"> <li class="header">Silver</li> <li>$19.99</li> <li>100 API calls per day</li> <li class="button">Sign up</li> </ul> <ul class="platinum"> <li class="header">Platinum</li> <li>$29.99</li> <li>500 API calls per day</li> <li class="button">Sign up</li> </ul> </div> </body> </html>
Conclusion
In this article, we learned how to create a basic pricing table using just HTML and CSS. We first created our basic structural layout using our index.html file, and then we added the stylings to it.
- Related Articles
- How to create a responsive pricing table with CSS?
- How to create Section Counter Using HTML and CSS?
- How to create a revealing sidebar using HTML, CSS, and JavaScript?
- How to Create a Color Picker using HTML, CSS, and JavaScript?
- How to Create a Parallax Effect using HTML, CSS, and JavaScript?
- How to create a Vertical Navigation Bar using HTML and CSS ?
- How to Create a Binary Calculator using HTML, CSS and JavaScript?
- How To Create A Text Inside A Box Using HTML And CSS
- How to create Expanding Cards using HTML, CSS, and JavaScript
- How to create toggle switch by using HTML and CSS?
- How to create Portfolio Gallery using the HTML and CSS
- How to create progress bar using the HTML and CSS
- How to create Image Folding Effect using HTML and CSS?
- How to Create a Profit and Loss Calculator using HTML, CSS, and JavaScript?
- How to create a Non-Rectangular Header using HTML & CSS

Advertisements