- 1). Open your text editor program and launch the desired webpage, or access an online account that contains your page's code.
- 2). Place your cursor before the ending "</head>" tag at the top. Type the following CSS code that creates the style rule for the horizontal rule tag:
<style type="text/css">
<!--
hr { }
-->
</style> - 3). Type "color: black;" inside the curly brackets to indicate that each HR tag must be rendered as black. To illustrate:
hr { color: black; } - 4). Save your work and upload the page to the Web host that manages your website (if applicable). Your complete CSS code now looks like this:
<style type="text/css">
<!--
hr { color: black; }
-->
</style>
previous post
next post