consider the href and src attribute