Retrieve HTML attribute values from the elements matched by the query.