Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <script src="demo_defer.js" defer></script> <p>The script above requests information from the paragraph below. Normally, this is not possible, because the script is executed before the paragraph exists.</p> <p id="p1">Hello World!</p> <p>However, the defer attribute specifies that the script should be executed later. This way the script can request information from the paragraph.</p> </body> <!-- Mirrored from www.w3schools.com/tags/tryit.asp?filename=tryhtml_script_defer by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 08:24:07 GMT --> </html>
Result:
Try it Yourself - © w3schools.com