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 8070315
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:22:28+00:00 2026-06-05T13:22:28+00:00

I have a weird html problem. I have a code like: <label for=username>Username</label> <input

  • 0

I have a weird html problem.

I have a code like:

<label for="username">Username</label>
<input name="username" type="text"/>

But when I click on the label text Username I am not “redirected” into the input text field. By redirection I mean that the blinking cursor appears inside the input field and I can start writing.

What am I doing wrong?

  • 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-06-05T13:22:30+00:00Added an answer on June 5, 2026 at 1:22 pm

    For in label refers to an id:

    <label for="username">Username</label>
    <input name="username" id="username" type="text"/>
    

    More: http://www.w3.org/TR/html401/interact/forms.html#h-17.9.1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a weird problem with my HTML and CSS code: <header> <h1>title</h1> </header>
I have a really weird problem: i searching for URLs on a html site
I'm trying to work with requirejs and text plugin and I have weird problem.
I have a weird error in my flask application. Problem is that the code
I have a weird problem. I generate a HTML page, hosted let's say at
I have a weird problem with HTML select box height in Firefox 2, here's
I already have a solution for this problem but I do not understand why
I have a very weird problem. I am using PHP, in my PHP code,
I have a regular text-box: <input type=text> I use jQuery to handle key-related events:
I have a weird problem here. When I start an Emulator, it starts up

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.