<a href="joeshome.html"><img src="iceberg.jpg" border="5" alt="Home" height="100" width="150"></a> <br> <a href="joesproduce1.html"><img src="cos.jpg" border="5" alt="Produce" height="100" width="150"></a> <br> <a href="joeshistory.html"><img src="fancy.jpg" border="5" alt="History" height="100" width="150"></a>
This code is meaningless. Either you have to finish the <a> before jumping to the <img> or you have to give a image link. I am not correcting the code code because ehymel has already done that.
This is a correct HTML code but a wrong XHTML code. The simple meaning of the XHTML is "well formed HTML". You have to close the <img> tag, even it has no closing tag. Close it like this.
<a href="joeshome.html"><img src="iceberg.jpg" border="5" alt="Home" title="Home" height="100" width="150"></a>
In her code, Both text, and picture, act as a link because of thisChrissy's html code is correct, I'm not sure why you are saying she has to close the <a> tag before going on to the <img> tag. She did that! I think what happened is that she is perhaps confusing the text next to the image as the alt tag. I suggested removing the text and see if this is the desired result.
Yes, XHTML is not mandatory, But I can't agree with you with thisI don't think she ever specified using xhtml code, certainly not everyone uses that. Depends on her doctype specifications of course. The html code as written is just fine.
Most people use this, But I know most beginners don't use it, but it is advisable to use that because that is a standard of W3C(Anyway technology is something we can round up! )certainly not everyone uses that
Yes, that's why I said this is a correct HTML but wrong XHTMLThe html code as written is just fine.
If the web browser is not supporting to images or if image option is disabled, then the things inside the ALT will be displayed. That is why we use it.I have removed both the word home in the href part and then the actual alt="home". It seems that the alt="home" is having absolutely no effect.