Glossary
CSS
Borders in CSS
Elements on a webpage can have borders around them.
To see how it looks, add the border
property.
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>Rainforest Online Shop</h2>
<p class="coupon">50% Discount Code: LST3815162342*</p>
<p>*This offer is subject to change without any prior notice.</p>
</body>
.coupon {
border: solid;
}
To make the border appear, we set the value to solid
.
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h2>Rainforest Online Shop</h2>
<p class="coupon">25% Discount Code: LST38151*</p>
<p>*This offer is subject to change without any prior notice.</p>
</body>
.coupon {
border: solid;
}
Learn to Code in Python for Free
Start learning now
To advance beyond this tutorial and learn Python by doing, try the interactive experience of Mimo. Whether you're starting from scratch or brushing up your coding skills, Mimo helps you take your coding journey above and beyond.
Sign up or download Mimo from the App Store or Google Play to enhance your programming skills and prepare for a career in tech.