What is the purpose of using borders in css

for example p { padding: 12px; border: 5px solid #000; } And also dashed and dotted borders - - - ...

17th Dec 2016, 6:31 PM
Red N Blu
Red N Blu - avatar
2 Answers
+ 1
borders can be important if you import something from the web to your website and wanted to distinguish it from yours
17th Dec 2016, 7:01 PM
Amine M. Boulouma
Amine M. Boulouma - avatar
Borders can be used for many reasons including: 1. Visually separating different elements on a page 2. Enhancing the user experience 3. When used in conjunction with hover, it may give a visual cue that a link or button can create an action if clicked.
17th Dec 2016, 7:48 PM
Lucas Mathis
Lucas Mathis - avatar