Sorry if this is a silly question, and I hope my question is understood. Can someone clarify for me please, so in the case of adding images via <img src attribute, the img is the name of the attribute and the src is a value of the attribute right?
In simple terms, no. IMG
is the tagname, or element type; src
is the attribute name whose value is a source URL.
--attribute--
<img src="imageurl" alt="">
| \ \____ attribute value
type attribute name
2 Likes