It seems like your issue lies in the correct utilization of the alt and title attributes.
The Importance of the Title Attribute
The title
attribute is a versatile attribute that can be applied to all elements. While it has specific meanings for certain elements such as the abbr
element, the general definition states:
The title
attribute provides advisory information for the element […]
Understanding its defined use cases is crucial to ensuring proper application.
Key Details About the Alt Attribute
The alt
attribute, on the other hand, is restricted to the area
, input
(for image buttons), and img
elements. For img
specifically, it serves as:
A fallback content for the img
element, offering equivalent information for users unable to view images or with image loading disabled.
Maintaining adherence to usage guidelines is essential when working with this attribute.
Learn more here
<br><img alt="Cool as ninja!" title="Cool as ninja!" src="/images/profile2.png" width="300"></br>
<br> <strong>Who's this pretty girl ninja!?</strong>
<br><img alt="Cool dude bro!" title="Cool dude bro!" src="/images/profile5.png"></br>
<br> <strong>Incredible Hulk!</strong>
<br><img alt="What's up bro, like my new car?" title="What's up bro, like my new car?" src ="https://images-na.ssl-images-amazon.com/images/G/01/VDP/9816_cc2400_001_PVG_cherokee_712x534._V291818945_.png" width="300">
<br><strong>This is a nice, fast, as well as strong car!</strong></br>