Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ What is wrong with the HTML Code?

Posted by: zkoneffko Aug 16 2009, 02:36 PM

I recently applied for a job and as a pre interview they asked me to respond to about 20 questions/problems about web design. I had no issues with any of them execpt one. Below I listed the exact question and code they sent me. There was no other information provided. I just don't see the exact problem with the code. I have an idea or two but I wanted to see some other peoples opinions.

Here is the code and question exactly has they stated it:


What is wrong with this html code?

<div align="right"><a href="http://email.testsite.com/servlet/cc6?pOQSCRRDQqTVLKKpLkiHgnxPHohhQJhuVaVBVJhglHJlXpKVSYSAWBAA"><img alt="book_early_and_save" border="0" src="http://media.testsite.com/copper/email/Copper%20Wire/sidepromo-springbreak.jpg" ></a></div>

Posted by: Darin McGrew Aug 17 2009, 01:07 AM

Off the top of my head...

With a Strict DTD, you can't use the align or border attributes.

Using border="0" can be a usability issue, making it harder for the user to recognize which images are linked.

And "book_early_and_save" seems like a poor choice of alt text.

Posted by: Matt_Turner Aug 22 2009, 11:10 AM

Border 0 will remove the border no...???

Posted by: pandy Aug 22 2009, 11:15 AM

Yes. Were there any requirements? Like Strict or XHTML?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)