add method to html objet, default alt attribute and define in class Paragraph