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
img
tag can not have any child elements.To get the result you are looking for you may want to wrap both the
img
andspan
in a wrapperdiv
like this.(I am not sure if this is what you are looking for but assuming so from your question)