Home > Web Front-end > HTML Tutorial > What are the basic controls of HTML?

What are the basic controls of HTML?

php中世界最好的语言
Release: 2018-01-17 09:44:43
Original
4173 people have browsed it

This time I will bring you what are the basic controls of HTML and what are the precautions for using HTML controls. The following is a practical case, let's take a look.

Tag

Tag is used to collect user information.

type attribute

According to different type attribute values, the input field has many forms. It can be a text field, check box, masked text control,

radio button, button, etc.

text: text area

readonly attribute: whether it is read-only.

password: password area, the entered text is displayed with '*'

checkbox: check box

checked attribute: whether to check;

radio: Radio button;

name attribute: Specify multiple radio button boxes to perform radio selection operations in an area

reset: Reset all labels in the current
form to the initialized state (Such as clearing the content of the text area)

submit: Submit the current form information to the specified page

button: Ordinary button

Value attribute: The text displayed by the button button

file: file selection tag

hide: hidden area, you can store some information that is not displayed to the user but is used by yourself

image: picture area

src attribute: specifies the path where the image is stored;

title attribute: the text displayed when the mouse moves over the image;
alt: the text displayed when the image fails to load or is closed;

Example