अवलोकन
border शॉर्टहैंड प्रॉपर्टी बॉर्डर की चौड़ाई, स्टाइल और रंग को एक ही घोषणा में सेट करती है।
उदाहरण
<!DOCTYPE html> <html> <body> <button onclick="display()">Set border</button> <div id="box"> <p>Demo Text</p> <p>Demo Text</p> </div> <script> function display() { document.getElementById("box").style.border = "thick dashed #000000"; } </script> </body> </html>