What is the default value of a (input type=) submit button

后端 未结 2 466
南旧
南旧 2020-12-11 20:31

I am building a multilingual website and I was wondering how is set the default value of a submit button? Is it something browser specific or does it rely on the system lan

2条回答
  •  无人及你
    2020-12-11 20:47

    If a value is missing, the browser will place it there (in the language that the browser is in).

    So assuming you don't know the language of the browser, it's best to just set the value attribute yourself.

    Also, it's more consistent to have a translation for every text used in the website (which includes buttons).

提交回复
热议问题