How to set button text in html

青灯夜游
Release: 2021-12-14 16:28:09
Original
17237 people have browsed it

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>
Copy after login

Example:

<button>按钮一</button>
<button>按钮二</button>
<button>按钮三</button>
<button>按钮四</button>
<button>按钮五</button>
Copy after login

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="按钮三" />
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!