Set border-top for header in HTML and CSS
Description
The following code shows how to set border-top for header.
Example
<html>
<head>
<style type="text/css">
h2 {<!--from w ww . jav a 2 s. c o m-->
border-top: 10px solid black;
}
</style>
</head>
<body>
<h2>This is a header</h2>
<p>This is a test</p>
</body>
</html>
The code above generates the following result.