closes #2757
This commit is contained in:
parent
2ac75262db
commit
83085378e3
1 changed files with 4 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue