I have added span tag in between the img tag so its giving an error Please Explain Why it is giving an error. What the exactly problem is...
<img src="any demo images here" alt="Nadeem">
<span>adeem</span>
</img>
I have added span tag in between the img tag so its giving an error Please Explain Why it is giving an error. What the exactly problem is...
<img src="any demo images here" alt="Nadeem">
<span>adeem</span>
</img>
Copyright © 2021 Jogjafile Inc.
The reason is because the
imgtag can not have any child elements.To get the result you are looking for you may want to wrap both the
imgandspanin a wrapperdivlike this.(I am not sure if this is what you are looking for but assuming so from your question)