The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Label in forms › Re: Label in forms
I agree with @TT_Mark, the second method states that the text box is its own label, which doesn’t make sense.
If you’re doing it that way strictly to have a container element, use a div or whatever works best for your form.
Frontend Masters is the best place to get it. They have courses on all the most important front-end technologies, from React to CSS, from Vue to D3, and beyond with Node.js and Full Stack.