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