<html>
<head>
<style>
h1 {
border-bottom-style: solid;
border-bottom-width: 1px;
}
div {
border-style: solid;
border-bottom-width: 1px;
}
</style>
</head>
<body>
<h1>A heading with a 1px thick bottom border</h1>
<div>A div element with a 1px thick bottom border.</div>
<p><strong>Note:</strong> Always declare the border-bottom-style or the border-style property before the border-bottom-width property. An element must have a border before you can change the color.</p>
</body>
</html>