I learned CSS and basic xhtml while I was working for a Web Design start-up. The business has taken off, but I have missed out on some basics. I wouldn't know where to start making an html table (though I hear that's no loss).
I had made a few product includes for a customer and there were two links that needed to be put in place: a buy button that adds a quantity of one to an off site shopping cart, and a Learn More button that goes to a Product Info. Page. I coded them as links( <a href> ) and a colleague said it should be an input type=button. Unfortunately he didn't say why, and I can't find anything via google to justify this. It's not that I don't believe him, I do, and I am changing it now, but I want to know for future reference when buttons should be used instead of links and why. Is there a reason why it's going to work better than a link? Is it easier to format with CSS?
Thank you for your help. I hope your answers will make a good tutorial for anyone else wondering the same.
I had made a few product includes for a customer and there were two links that needed to be put in place: a buy button that adds a quantity of one to an off site shopping cart, and a Learn More button that goes to a Product Info. Page. I coded them as links( <a href> ) and a colleague said it should be an input type=button. Unfortunately he didn't say why, and I can't find anything via google to justify this. It's not that I don't believe him, I do, and I am changing it now, but I want to know for future reference when buttons should be used instead of links and why. Is there a reason why it's going to work better than a link? Is it easier to format with CSS?
Thank you for your help. I hope your answers will make a good tutorial for anyone else wondering the same.