Questions tagged [label]

A label is a placeholder for text and other UI elements.

Label is a commonly used term for a user interface element. It is applicable to both web, and windows environment. It is typically an element with limited functionality, used solely, or at least primarily, for display purposes.
It can also have additional roles such as providing hooks for accessibility and assistive technologies. The HTML label tag is often used for this purpose.

Definition and Usage

  • The <label> tag defines a label for an element.
  • The <label> element does not render as anything special for the user. However, it provides a usability improvement for mouse users, because if the user clicks on the text within the <label> element, it toggles the control.
  • The for attribute of the <label> tag should be equal to the id attribute of the related element to bind them together.
  • The for attribute specifies which form element a label is bound to.
11279 questions
3
votes
5 answers

Using label and break in if-else statement

I have this code which generates random number from an array, at a particular condition (when x and y both are equal to zero). I want the control to jump to the label. But the control never jumps to the label in any condition. I wanted to know that…
user2044187
  • 107
  • 1
  • 1
  • 10
3
votes
0 answers

Can't prevent all marker overlays from overlapping markers google maps api v3

I have a google map using api version 3. I want to create markers with a custom icon and numbered labels. I've been trying to use what seems to be the most accepted method for this, the "labels.js" solution that I've provided below. However, no…
3
votes
2 answers

python matplotlib label/title wrong character

This is a partial cross-post to this question. Here is a minimal example of my code: import matplotlib.pyplot as plt x = [0.0, 0.25, 0.5, 0.75, 1.0] y = [7.0, 3.0, 5.0, 1.0, 0.0] II = 2 fig = plt.figure() ax =…
Schorsch
  • 7,761
  • 6
  • 39
  • 65
3
votes
1 answer

Change Style of Selected Radio Button Label

I'm attempting to change the border color of a radio button label when it is selected in the form. I found this question which is pretty much exactly what I am looking to do: CSS - How to Style a Selected Radio Buttons Label? but when I try it with…
Josh Mountain
  • 1,888
  • 10
  • 34
  • 51
3
votes
1 answer

HTML Label Not Displaying (Dojo 1.8)

I am creating a set of checkboxes dynamically using Dojo 1.8. After creating the checkbox, I'm also setting the label for the checkbox, but the label is not visible on the site, although I can see it when I look at the HTML in Firebug. Any ideas…
Emmster
  • 159
  • 1
  • 8
3
votes
1 answer

ASP.net Vb.Net Label.Text not updating

In my VB.net ASP application, i have some ASPTREEVIEW where, on page load there is a Label, to which i set some value. After clicking on any row, i catch that value & assign it to the label. But suddenly that label value is not updating by the…
Vijay Kumbhar
  • 896
  • 1
  • 13
  • 31
3
votes
2 answers

Vim - sed like labels or replacing only within pattern

On the basis of some html editing I've came up with need for help from some VIM master out there. I wan't to achieve simple task - I have html file with mangled urls. Just…
yatsek
  • 855
  • 1
  • 10
  • 19
3
votes
1 answer

What is the difference between asp:label and HTML label?

What is the difference between the asp:label and the html label ? I know that the first one is rendered on the server so basically it returns a span tab, but what is its use? What are the cases in which one would want to use a HTML tag and in what…
user590849
  • 11,655
  • 27
  • 84
  • 125
3
votes
1 answer

Cannot rotate text d3js

I'm trying to add text to the partition-sunburst example. I have followed a hint given on Google Group and I was able to add the text. Now I want to rotate it. The new angles seem to be correct, but all the text get gathered in one point. This is…
gcedo
  • 4,811
  • 1
  • 21
  • 28
3
votes
1 answer

Equivalent of a Web Forms label in MVC

In Web Forms, a Label displays text which persists between postbacks. What is the equivalent in MVC4? I don't mean Html.LabelFor because that doesn't persist the model property it is bound to on postback. At the moment, I am…
James
  • 7,343
  • 9
  • 46
  • 82
3
votes
1 answer

Using label control inside foreach loop to display multiple value in a single label

//program.cs foreach (Mutant mutant in mutants) { label12.Text=mutant.displayInfo(); } //Mutant.cs public abstract int dangerQuotient(); public String displayInfo() { return(codename + " " +…
Rama Priya
  • 2,387
  • 7
  • 28
  • 39
3
votes
2 answers

TTTAttributedLabel and popover for link

Is it possible to detect CGRect of link text or CGPoint of position, to show popover (on ipad) for clicked link in TTTAttributedLabel? I need to show popover on clicked link with TTTAttributedLabel. Thanks!
Valerii Pavlov
  • 1,986
  • 1
  • 19
  • 30
3
votes
1 answer

Editing label text in multibarchart in nvd3.js

I observed that multibarchart in nvd3.js expects the following JSON format input. [ { "key": "abcd", "values": [ { "x": 1221578789000, "y": 40 }, { "x": 1222578789000, "y": 103 }, …
Krishna
  • 71
  • 1
  • 6
3
votes
2 answers

How do I lock a Perforce label from the command line?

I recently imported a VSS repository into Perforce. This included hundreds of labels, which the developer that was using VSS (now using Perforce) relies upon. I accidentally deleted them and had to do the import again. To prevent such accidental…
raven
  • 18,004
  • 16
  • 81
  • 112
3
votes
1 answer

Nicely label lines without legend when axis limits change?

When there are lots of lines on a plot, a legend isn't always the best way to label them. I often do something like this to label the lines at the right-hand edge of the plot: def p(): fig, ax = plt.subplots() x = arange(1, 3, 0.01) for…
ricklupton
  • 354
  • 2
  • 7
1 2 3
99
100