Course
summary


    0 chapters available

Loading...

Make your website interactive with JavaScript

Difficulty: Beginner ● Progress: 0 / 0 modules completed

Targeting an existing HTML element

There are generally two ways to create interactions between our HTML and our JS:

  • either we target an existing HTML element to modify it or retrieve its information
  • or we create it directly in JavaScript.

Of course, both methods are compatible with each other, it will depend on your application

We're going to start by working with an already existing HTML structure. Let's take a few very simple elements, which you can create in your example file, like this:

You need a free account to read this module