</> Code Corner

JavaScript · JS Tutorial · Lesson 1

JS Introduction

What JavaScript can do.

JavaScript is the programming language of the Web. HTML defines the content, CSS specifies the layout, and JavaScript programs the behaviour of web pages.

JavaScript Can Change HTML Content

Example

<p id="demo">JavaScript can change HTML content.</p>
<button type="button" onclick="document.getElementById('demo').innerHTML = 'Hello JavaScript!'">Click Me!</button>

JavaScript Can Change CSS

Keep reading “JS Introduction”

Sign up to read the full lesson (2 more parts), try every example in the live editor, and take the 5-question quiz.

Chat with us 👋