Learn HTML DOM
Document Object Model
2.1
Lesson

Are HTML and CSS enough

So, you know your HTML and CSS and can create a good looking webpage.

That’s great!

But your webpages don’t have any interactivity. For example, if you wanted to create a button which when clicked, changes something on your webpage, you can’t do that with just HTML and CSS.

Take a look at this example code:

To allow the user the ability to access and change your webpage content, you need to use a programming language like JavaScript.