Welcome back.
In this video, let's talk about selectors.
When it comes to Dom, we are not going to write well Dom code.
So the first step is we need know some methods in the DOM that's going to help us to select pieces of
the DOM that we want to use JavaScript to select.
To better understand Dom, this is the first step.
We need to know how we can select or how you can select using these selectors.
So for DOM selectors we have two types.
One is single selectors and other one is called the multiple selectors grid.
And for single selectors we have one get element by ID, the next one is called query selector.
These two selectors are commonly used to take note about this perfect.
So apart from single selectors you have an example of the multiple selectors.
An example is called Get Elements by tag name.
When we say single selectors, first is select only one element in the page.
So for multiple selectors, a select multiple elements and put them in an array.
So an example of the multiple selectors is called Get Element by tag name.
It simply means that if elements, let's say we have five elements with the same type name, we can
use this selector to select all of them.
And apart from that, we can also use get elements by class name.
You would have even more to explain with code, all these concepts.
And apart from that, you also use what is called get elements by name.
The next one is called query selector or for the multiple selectors, query selector or is commonly
used.
So among these selectors we are going to use this ones and this one.
So pay attention to this.
So the difference is, is that see that here we have query selector and this one is called query selector
or like I said for single selector is a select one element and for multiple is select multiple element.
The next video.
Let's see how we can use these selectors to select element in our page so that we can use JavaScript
to add content to read.