" and "" with the syntax ""; 2. Set the value of the value attribute in the input element with the syntax ""."/> " and "" with the syntax ""; 2. Set the value of the value attribute in the input element with the syntax "".">

Home  >  Article  >  Web Front-end  >  How to set button text in html

How to set button text in html

青灯夜游
青灯夜游Original
2021-12-14 16:28:0917330browse

Method: 1. Set the content between "", the syntax is ""; 2. Set the input element The value of the value attribute, the syntax is "".

How to set button text in html

The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.

html has two kinds of buttons:

  • button button

  • input button

The two buttons have different ways of setting button text. They are introduced separately below:

1. Button button

The button text of the button button is The content between "".

Grammar:

<button>按钮文字</button>

Example:

<button>按钮一</button>
<button>按钮二</button>
<button>按钮三</button>
<button>按钮四</button>
<button>按钮五</button>

How to set button text in html

2. Input button

The button text of the input button is controlled by the value attribute, which is the attribute value of the value attribute

<input type="button" value="按钮一" />
<input type="button" value="按钮二" />
<input type="button" value="按钮三" />

How to set button text in html

Recommended tutorial: "html video tutorial

The above is the detailed content of How to set button text in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn