For your first assignment:

  1. Create a new .html page on your project.
  2. Create an html element with an id. ex. <p id="something"> </p>
  3. Create a script tag and use Javascript to target the id created above. ex.
    <script>
    document.getElementById("something").innerHTML = "Your message"
    </script>
  4. Submit the link to your live page in Buzz.
*Do not use a button on this assignment, the buttons below are just for explanation and not needed for this assignment. Just make an empty p tag with an id, and then target that id with your javascript.


Below are some examples of different ways you can change a page with Javascript. DO NOT use a button on your assignment, just use document.getElementById


*the console is blocked on GHCHS Chromebooks


back to index