You can add alt text to a dummy image by specifying the alt attribute in the HTML code. The alt text describes the image to users who are visually impaired or using assistive technology.