HTML and CSS Reference
There are several other features of objects, as well as a few different
ways to create them, but you won't need to know them for this topic.
Just bear in mind that whenever you see periods, you're almost always
looking at objects with properties and methods.
it was intended for—manipulating web pages. But to do that,
into HTML . You can do this three primary ways: inline in a <script>
element, linked in a separate file, and inline in an event handler. Let's
look at each in turn.
Inline <script> element
to include it inside a <script> element. Here's a simple example:
If you create a web page using this code and load it in your browser,
you should see something like the following screenshot (if you're using