Article Directory
1 Commonly used labels
Artical
header
header head
header
NAV
navigation bar
NAV
footer
footer
footer
Artical
Use datalist with input
. Adding placeholder to input can make the default value in the box disappear when clicked
2 input tag
email: Email format must be filled in
tel: fill in the phone number (most browsers no longer support)
number: You can only fill in numbers, and there are up and down arrows to adjust the number
range: slider
time: Display the number 00: 00, the maximum is 24 in the front, the maximum is 59 in the back
date: date year: month: day
datetime-local: equivalent to date+time
placeholder attribute: Specifies the prompt to help the user fill in the input field, hidden when the mouse is clicked (but still visible)
required: the box cannot be empty