2014-10-30 8:53, Артур Истомин wrote:

I am writing POS (point of sale) software. There are two buttons: "Check
out" and "Cancel".

What is the properly tag for them: <button> or <a>? Most of the
tutorials use <a> and very rarely <button>. So what I should to choose?

This is off-topic for this list, which is for discussing practical use of CSS, not the choice of markup (which is partly a matter of taste in a case like this, partly dependent on many functional and other factors).

The choice has implications on the use of CSS. If you want the element to look like a button, <button> gives some button appearance even without CSS, and you might just tune its details in CSS (or just let browsers use their defaults). If you use <a>, the default rendering is underlined text in a distinctive link color, so you would need many CSS settings to make it look like a button of some kind.

But even though this CSS side of the matter might seem to be of some relevance in making the choice, it is normally made on other grounds.

Yucca


______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to