I am trying to create a tool which will create a list of all the content elements and another one for all the chrome elements on a webpage.
There are many fuctors that can categorize an element as content. First of all, I can use the tag names (such as
or … ), also certain role attributes indicate content.In addition, the alt attribute in an img element indicates that the img is important for a webpage. I also used some css properties such as backgroung image or font-size for the categoriazation.Also, the accesibility of a webpage, meaning interactive elements or elements with an acceptable contrast ratio should indicate a content element.Then, I did a check on the parent and child element of the element i want to categorize and checked some of the factors i mentioned before. What else could i use to make my tool more accurate?
Sissy Arv. is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.