HTML Tutorial – The ‘for’ attribute on labels and input fields

A quick video today on the ‘for’ attribute within HTML. We take a look at what it’s used for and how exactly you would implement it.

When I first started learning HTML I would always incorrectly use this attribute alongside the ‘name’ attribute which was clearly incorrect.

Support me on Patreon:
https://www.patreon.com/dcode – with enough funding I plan to develop a website of some sort with a new developer experience!

For your reference, check this out:
https://www.w3schools.com/tags/att_for.asp

Follow me on Twitter @dcode!

If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!

You May Also Like