HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <h1>CSS margin-bottom Property</h1> <p>This is a paragraph (Apply margin-bottom).</p> <button onclick="myFunction()">Click Me</button> <script> var x = document.getElementsByTagName("p")[0]; function myFunction(){ x.style.marginBottom = "75px"; } </script> <p><strong>Note</strong>: click on the button to apply css 'margin-bottom' property.</p> </body> </html>
OUTPUT
×

Save as Private