JavaScript is the world's most popular programming language. JavaScript is the programming language of the Web. JavaScript is easy to learn. This tutorial will teach you JavaScript from basic to advanced. <h2>Why Study JavaScript?</h2> JavaScript is one of the <strong>3 languages</strong> all web developers <strong>must</strong> learn: 1. <strong>HTML</strong> to define the content of web pages 2. <strong>CSS</strong> to specify the layout of web pages 3. <strong>JavaScript</strong> to program the behavior of web pages <h2>JavaScript Can Change HTML Content</h2> One of many JavaScript HTML methods is <code>getElementById()</code>. <h2>Example:</h2> <div> <div class="hcb_wrap"> <pre class="prism undefined-numbers lang-html" data-lang="HTML"><code><!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>change label</title> <style> input.btn{ background-color: green; color: white; padding: 10px 15px; margin: 1rem auto; text-transform: uppercase; border-radius: 20px; } </style> </head> <body> <div id="changelabel">you're welcome.</div> <input class="btn" type = "button" value = "change label" onclick="changelabel();"> <script> function changelabel(){ var changelabel=document.getElementById("changelabel"); changelabel.innerHTML = "Hello"; } </script> </body> </html> </code></pre> </div> </div> <h2>output:</h2> we change you're welcome to Hello. [gallery columns="2" size="full" link="file" ids="414,415"]