Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (31)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (28)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
Other Resources:
What Is a LABEL Tag/Element
What Is a LABEL Tag/Element? - XHTML 1.0 Tutorials - Understanding Forms and Input Fields
✍: FYIcenter.com
A "label" element is an inline element that you can use to define a label for a form input field. Here are basic rules about a "label" element:
Here is a tutorial example of label texts linked to radio buttons:
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Label Text</title> </head> <body> <h4>Online Survey</h4> <form action="http://localhost/submit"> <p style="background-color: #eeeeee; padding: 8px;"> How did you find FYIcenter:<br/> <input type="radio" name="channel" value="google" checked="checked" id="radio_1"/> <label for="radio_1">Google search</label><br/> <input type="radio" name="channel" value="yahoo" id="radio_2"/> <label for="radio_2">Yahoo search</label><br/> <input type="radio" name="channel" value="friend" id="radio_3"/> <label for="radio_3">Your friend</label><br/> <input type="submit" value="Submit"/> </p> </form> </body> </html>
If you save the above document as field_label.html, and view it with
Internet Explorer, you will see 3 radio buttons linked to 3 labels.
Try to click the labels to see what happens to radio buttons:
2007-05-12, 11851👍, 0💬
Popular Posts:
. How can a servlet refresh automatically if some new data has entered the database? You can use a c...
How To Return the Second 5 Rows? - MySQL FAQs - SQL SELECT Statements with JOIN and Subqueries If yo...
How can I show HTML examples without them being interpreted as part of my document? Within the HTML ...
How To Export Data to a CSV File? - Oracle DBA FAQ - Introduction to Oracle SQL Developer If you wan...
How do I force the Dispose method to be called automatically, as clients can forget to call Dispose ...