Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7168497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:47:33+00:00 2026-05-28T14:47:33+00:00

Consider the following: <label>Range from <input name=’min_value’/> to <input name=’max_value’ /> </label> Is this

  • 0

Consider the following:

<label>Range from 
    <input name='min_value'/> to
    <input name='max_value' />
</label>

Is this semantically correct since the W3C recommendations state that a label is associated with exactly one form control?

Clicking into the second input shifts focus immediately to the first input? Can this be prevented?

How would one markup a min/max input combination to show that two inputs belong together?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T14:47:34+00:00Added an answer on May 28, 2026 at 2:47 pm

    No, it’s not correct (since, as you note, a label is associated with exactly one form input).

    To label a group of inputs that belong together, use a <fieldset> and a <legend>:

    <fieldset>
      <legend>Range</legend>
      <label for="min">Min</label>
      <input id="min" name="min" />
    
      <label for="max">Max</label>
      <input id="max" name="max" />
    </fieldset>

    References:

    • <input />HTML 5 spec.
    • <fieldset>HTML 5 spec.
    • <label>HTML 5 spec.
    • <legend>HTML 5 spec.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following code : HTML: <div> <label for='name'>Name:</label> <input type='text' id='name' /> </div>
Consider the following example: ( live demo here ) HTML: <label>Name</label> CSS: label {
Consider the following 2 queries: select tblA.a,tblA.b,tblA.c,tblA.d from tblA where tblA.a not in (select
Consider following tables: How to skip and take groups from the table? Tried using
This question is about a very strange behavior of web controls. Consider the following
I need help on this following aspx code aspx Code: <asp:Label ID =lblName runat
Consider following schema: Customers: Col | Type | -------------------| id | INTEGER | name
Consider a Name model which has a required label attribute and an arbitrary Rails
Consider the following code: <label>Search:</label><asp:TextBox runat=server ID=search ClientIDMode=Static OnKeyUp=$('#searchButton').click(); /><asp:Button runat=server ID=searchButton ClientIDMode=Static />
This might be a novice question. :). Consider the following scenario. Suppose we have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.