question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about challenge: Label Bootstrap Buttons.

See original GitHub issue

Challenge Name

Label Bootstrap Buttons.

Issue Description

Here are my codes for the challenge. My question is this: why do we need to label the bootstrap buttons? I thought we already id’ed them? Is using span the correct way/only way to do it???

Browser Information

  • Browser Name, Version: Chrome. Latest version.
  • Operating System: OS X.
  • Mobile, Desktop, or Tablet: Macbook pro.

Your Code

 

<div class="container-fluid">
  <h3 class="text-primary text-center">jQuery Playground</h3>
  <div class="row">
    <div class="col-xs-6">
      <h4>#left-well</h4>
      <div class="well" id="left-well">
        <button class="btn btn-default target" id="target1"><span class="label">#target1</span></button>
        <button class="btn btn-default target" id="target2"><span class="label">#target2</span></button>
        <button class="btn btn-default target" id="target3"><span class="label">#target3</span></button>
      </div>
    </div>
    <div class="col-xs-6">
      <h4>#right-well</h4>
      <div class="well" id="right-well">
        <button class="btn btn-default target" id="target4"><span class="label">#target4</span></button>
          <button class="btn btn-default target" id="target5"><span class="label">#target5</span></button>
        <button class="btn btn-default target" id="target6"><span class="label">#target6</span></button>
      </div>
    </div>
  </div>
</div>

 
 

Screenshot

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
caravincicommented, Oct 31, 2016

While I may be wrong, a good way to explain it could be by introducing the labels themselves. We can explain that a form element (e.g. input field) by itself has no way to show what sort of information it expects from the user. A label is meant to help you know you need to type your name. Not sure if that would require a separate challenge, but it does definitely deserve a layman’s explanation.

2reactions
raisedadeadcommented, Oct 31, 2016

Yeah but even on the wells challenge it’s not defined what a “label” is.

Some might assume that labels are attributes like id’s

hence maybe we should add some clarification to both/all affected challenges.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question about challenge: Label Bootstrap Buttons
Here are my codes for the challenge. My question is this: why do we need to label the bootstrap buttons? I thought we...
Read more >
Bootstrap Buttons with Examples - GeeksforGeeks
Bootstrap provides us with different classes that can be used with different tags, such as <button>, <a>, <input>, and <label> to apply ...
Read more >
Forms · Bootstrap v4.5
Use the .form-inline class to display a series of labels, form controls, and buttons on a single horizontal row. Form controls within inline...
Read more >
Bootstrap (TB3) does not wrap button text in bootstrap (TB3) cols
I am using bootstrap (Twitter-Bootstrap 3) in a quiz style application and I use bootstrap buttons for the answers of the quiz. My...
Read more >
Label Bootstrap Buttons - Free Code Camp - YouTube
In this Bootstrap Front End Libraries tutorial we label Bootstrap buttons. This video constitutes one part of many where I cover the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found