Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS border-top property</title> <style> h1 { border-top: 5px dashed #ff0000; } p { border-top: 3px dotted #00ff00; } </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>