Note: Define the styles for the top border. Syntax: element { border-top-style: value } elementID.style.borderTopStyle = "value" document.all.elementID.style.borderTopStyle = "value" // IE only