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

What does checked mean?

angryTom
angryTomOriginal
2019-08-15 09:45:1724845browse

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 2213c9627c391f00ef101b1592023bcb or d11dad02a1f3abd212da65221b2dc681.

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

Syntax

<input checked="value">

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>

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