Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS padding-top property</title> <style> h1 { padding-top: 2em; background: #ffb6c1; } p { padding-top: 50px; background: #f0e68c; } </style> </head> <body> <h1>This is a heading</h1> <p>This is a paragraph.</p> </body> </html>