Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>The title of the document</title> <style> p, div { padding: 5px; } .border1 { border: 5px solid #ccc; } .border2 { border: 5px dotted #1c87c9; } div { border: thick double #8ebf42; } </style> </head> <body> <h2>Border property example</h2> <p class="border1">A heading with a solid gray border.</p> <p class="border2">A heading with a dotted blue border.</p> <div>A div element with a thick double green border.</div> </body> </html>