add alt attribute to img and title attribute to a