Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms Choosing Options Select Menus

Robert O'Toole
Robert O'Toole
6,366 Points

problems understanding values etc.

its really difficult to understand why we are implementing labels, ids, classes, etc, when no javascript stuff is covered in this course. i assume we use so many ids, classes, labels, etc because we want to use things like getElementByID (javascript) stuff

but its really difficultt o remember all this when i dont edxactly see the reason or need to use ids and labels etc. can someone plz help me?

2 Answers

In addition to JavaScript ids and classes can be used in CSS. In the video ids are used to bind labels to elements using the label's for attribute. These are short examples that you should get used to. Try right clicking the forum and choose 'View Page Source' to see what you may be getting into some day. Then the code in the video might not seem so bad.

Robert O'Toole
Robert O'Toole
6,366 Points

as usual everything seems daunting and incomprehensible at first. this is my second time returning to this lesson and i think im understanding it now :)

thanks!