CodeLab
Tutorials For Everyone
Run
<!DOCTYPE html> <html> <head> <title>JavaScript Inline Scripting Tutorial - TutsInsider</title> <style> .main{ padding: 10px; } .main-heading{ background: #333333; color: #ffffff; padding: 20px; } .main-paragraph{ margin-top: -20px; padding: 20px; box-shadow: inset 0 0 3px 0 #2a73cc; } .main-button{ padding: 5px 10px; margin: 5px; border: none; border-radius: 5px; background: #333333; color: #ffffff; box-shadow: 0 0 3px 0 #333333; cursor: pointer; } </style> </head> <body> <div class="main"> <h2 class="main-heading">What is JavaScript Inline Scripting?</h2> <div class="main-paragraph"> <p>We can include JavaScript in a web page by <a href="https://www.tutsinsider.com/javascript/javascript-how-to/">three methods</a>, and inline scripting is the first method.</p> <p>Consider the Below Example to understand this.</p> <button onclick="alert('Hello World!');" class="main-button">Click me</button> </div> </div> </body> </html>