<label> HTML Tag
In this article I will discuss the <label> HTML Tag.
The HTML label
tag is used for adding a label to a form control.
Example
<html>
<head>
<title></title>
</head>
<body>
<h2>
Choose your category</h2>
<form>
<input type="radio" name="category" id="general" /><label for="general">
General</label>
<br />
<input type="radio" name="category" id="ST" /><label for="ST">
ST</label>
<br />
<input type="radio" name="category" id="SC" /><label for="SC">
SC</label>
</form>
</body>
</html>
|
Output
Choose your category
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here