This commit is contained in:
Ilya Kantor 2021-10-25 23:04:20 +03:00
parent 2ac75262db
commit 83085378e3

View file

@ -25,7 +25,9 @@ The classes are:
- [HTMLInputElement](https://html.spec.whatwg.org/multipage/forms.html#htmlinputelement) -- the class for `<input>` elements,
- [HTMLBodyElement](https://html.spec.whatwg.org/multipage/semantics.html#htmlbodyelement) -- the class for `<body>` elements,
- [HTMLAnchorElement](https://html.spec.whatwg.org/multipage/semantics.html#htmlanchorelement) -- the class for `<a>` elements,
- ...and so on, each tag has its own class that may provide specific properties and methods.
- ...and so on.
There are many other tags with their own classes that may specific properties and methods, while some elements, such as `<span>`, `<section>`, `<article>` do not have any specific properties, so they are instances of `HTMLElement` class.
So, the full set of properties and methods of a given node comes as the result of the inheritance.
@ -128,7 +130,7 @@ For instance:
```html run
<body>
<script>
<script>
let elem = document.body;
// let's examine what it is?