Home > Web Front-end > HTML Tutorial > What does checked mean?

What does checked mean?

angryTom
Release: 2019-08-15 09:45:17
Original
24848 people have browsed it

What does checked mean?


## The English meaning of checked is: check; review; check; inspect; find out; view; verify; confirm; control; suppress; prevent.

In HTML:

##Recommended TutorialHTML video tutorial

Definition and usage

The checked attribute specifies that it should be pre-selected when the page is loaded. input element.

 The checked attribute is used with or .

 The checked attribute can also be set through JavaScript code after the page is loaded.

Syntax

<input checked="value">
Copy after login

Example


HTML form with a pre-selected checkbox :

<form action="form_action.asp" method="get">
<input type="checkbox" name="vehicle" value="Car" checked="checked" /> I have a car
</form>
Copy after login

The above is the detailed content of What does checked mean?. 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