+ 1
What is an id selector used for
5 odpowiedzi
+ 3
It is used to select a specific element of the page with that id.
It is like the class selector, with the only difference that ids are unique and not classes
+ 2
You need to understand HTML first to learn how select elements
+ 1
if your looking to find an element in HTML tree which has an id you can use css selector or xpath selector based on id. in order to check your pattern open inspect mode in browser by typing f12 and cntrl+f to find an element and paste the pattern
+ 1
What’s div in HTML
0
ID is the most specific selector, and overrides the class and tag selectors. it should be used sparingly, and only to select individual elements.