The <label> tag defines a label (tag) for an input element. The label element does not present any special effect to the user. However, it improves usability for mouse users. This control is triggered if you click on the text within the label element. That is, when the user selects the tag, the browser automatically shifts the focus to the form control associated with the tag. The for attribute of the <label> tag should be the same as the id attribute of the associated element Example 1: Copy code The code is as follows:<label for="man"> <input type="radio" value="男" name="man" id="man"/> male </label> <label for="man2"> <input type="radio" value="女" name="man" id="man2"/> female </label> Example 2: Copy code The code is as follows:<input type="checkbox" name="Pages" value="Job" id="Job" ><label for="Job">Add and edit job information</label> <input type="checkbox" name="Pages" value="JobQuery" id="JobQuery" ><label for="JobQuery">Query and delete recruitment information</label> <input type="checkbox" name="Pages" value="Technology" id="Technology" checked><label for="Technology">Add or modify technology items</label> |
<<: Sample code for using CSS to write a textured gradient background image
>>: MYSQL METADATA LOCK (MDL LOCK) theory and lock type test
Preface We all know that MySQL query uses the sel...
Table of contents 1. ES syntax getter and setter ...
Table of contents The principle and function of l...
Solution: Bind the click event to the audio compo...
<br /> When we browse certain websites and s...
Based on SEO and security considerations, a 301 r...
RedHat6.5 installation MySQL5.7 tutorial sharing,...
Event loop in js Because JavaScript is single-thr...
What is a memory leak? A memory leak means that a...
Table of contents Why do databases need indexes? ...
This article shares the specific code for JavaScr...
Today I found that a program inserted an incorrec...
Preface In order to meet the high availability of...
Deploy nginx with docker, it's so simple Just...
FastDFS & Nginx Integration: The tracker is c...