Menu icon Foundation
Why buttons are build with <a href> ?

Is there any reason to use <a href> instead of <button> to display a button using foundation ?

It seems to work properly using <button>, but docs mention <a href> (http://foundation.zurb.com/docs/components/buttons.html). What are the consequence if I use <button> instead of <a href> ?

button

Is there any reason to use <a href> instead of <button> to display a button using foundation ?

It seems to work properly using <button>, but docs mention <a href> (http://foundation.zurb.com/docs/components/buttons.html). What are the consequence if I use <button> instead of <a href> ?

Rafi Benkual over 4 years ago

You can use it both ways and both are valid. <button> is styled as a button or <a href=""> can have a class of button.