Fetch element and attribute information from an html page