Why " />"?


#1



My code does not behave incorrectly, I simply have a question; I don't understand the need for " />" at the end of "

Why is the break needed? All other elements thus far start with an open tag <> and end with a broken one . This one starts and ends with one broken tag.


<a href="#" target="_blank">
    <img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg" /></a>


#2

it is xml syntax, also explained on tutorialspoint


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.