Added `type='button'` to buttons to prevent accidental form submission
Added alt and longdesc attributes to photo content if they are present on the calling element.