<style> hr{ height: 1px; background-color: #ccc; border: none; } </style>
<!-- HTML --> <!-- You can change the style of the horizontal line like this: --> <hr style="width:50%", size="3", color=black> <!-- Or like this: --> <hr style="height:2px; width:50%; border-width:0; color:red; background-color:red">
<!-- Note: cannot use color on this case, use border to style or <hr /> --> <style> hr.new3 { border: 1px solid blue; } </style> <hr class="new3">