+ 3

How do you make a border

How do you make a border around writing on HTML...

28th Aug 2018, 9:49 PM
Little Cupcake
Little Cupcake - avatar
6 Answers
29th Aug 2018, 1:16 AM
Vanumu Satish Kumar
Vanumu Satish Kumar - avatar
+ 4
You could use inline CSS in your div: <div id=“div_name” style=“border-width:1px; border-style:solid; border-color:black”> </div> or (shorthand): <div id=“div_name” style=“border:1px solid black”> </div> Of course if your object is a paragraph or span element, you would replace <div> with <p> or <span>.
28th Aug 2018, 10:57 PM
NULL
NULL - avatar
+ 2
use css property for border to any element div span image many more
29th Aug 2018, 7:43 AM
Aarav Raj
Aarav Raj - avatar
+ 2
ok
29th Aug 2018, 8:55 AM
Little Cupcake
Little Cupcake - avatar
+ 2
If you wanna make a border around your image without CSS!! my simple code!!😂😂 https://code.sololearn.com/WUe32R14OT4F/?ref=app
29th Aug 2018, 1:17 PM
AL Araf
AL Araf - avatar
+ 1
you can use the external css for example selector{border:2px dotted black}
29th Aug 2018, 1:41 PM
Get na