Create a Rounded Button with Border Radius
📖 Scenario: You are designing a simple webpage with a button. You want the button to look friendly and smooth by rounding its corners.
🎯 Goal: Build a button with a border radius so its corners are rounded. This will make the button look softer and more modern.
📋 What You'll Learn
Create a button element in HTML
Add a CSS class to style the button
Use the
border-radius property in CSS to round the cornersSet the border radius to exactly
12pxEnsure the button has a visible border and background color
💡 Why This Matters
🌍 Real World
Rounded buttons are common in websites and apps to create a friendly and modern look that invites users to click.
💼 Career
Knowing how to style buttons with border-radius is a basic skill for front-end web developers and UI designers.
Progress0 / 4 steps