Extracting CSS Selector on The Page
In the browser, right-click on the page in order to open the options menu and select "Inspect"
This will open the DevTools of the browser.
Use the inspect tool on the element you want to extract the CSS selector:
Select the element you want on the page, it will highlight the HTML element for it:
Right-click on the HTML element and select "Copy" then "Copy Selector":
-
Official comment
There is also a course in the DY academy that walks you through a demo of the steps outlined above, you can access the course here.
Comment actions
Please sign in to leave a comment.
Comments
1 comment