Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS margin-top Property</title> <style> h1 { margin-top: 25px; } p { margin-top: 50px; } </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> <p><strong>Note:</strong> Play with the margin-top property value to see how it works.</p> </body> </html>