Connor_Barley:
Since image tags are implicitly closed, closing the image tags might have been a red herring.
Hi again Connor. I see that you are not displaying images in the example. I’m still not able to compile the xml because the “unclosed” image tags. The xml are being red flagget in Visual Studio.
Came across this when googeling the problem:
The
<img>tag represents what is known as a void element (see HTML5 spec), so called because it can’t have any contents (unlike, say<a>or<div>). Therefore there is no syntactic reason why it should need to be closed in HTML.XHTML, however, is based on XML, where every tag needs to be closed.