Apologies if this is basic but I can't seem to phrase my question to find the results elsewhere.
Basically, I am wondering how to webscrape the actual name of a CSS Attribute from a webpage using Javascript. Intuitively, I want to use document.querySelectorAll('a [title]'), but this is simply a selector to get the text content that is labeled with those selectors and doesn't scrape the actual title attribute's name itself.
In the below example, document.querySelectorAll('a [title]') would select "A Light in the..." body text, not "A Light in the Attic" meta title name.
<h3>
<a href="catalogue/a-light-in-the-attic_1000/index.html" title="A Light in the Attic">A Light in the...</a>
</h3>
You can see why this is important, as I'm dealing with a webpage that cuts off the name when written in the body text but writes it out entirely in the title meta tag.
Thank you!