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!
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
Some HTML form question
<div class="myclassname"> <form action="index.html" method="post" class="myclassname"> <input type="text" id="name" name="user_name" class="form-group"> </form> </div>
1) If I have a class name (myclassname), is better place in div or form?
2) Is it better leave blank (action="" method="" id="") let the engineer fill it?
Steven Parker228,077 Points
As a general rule, I would suggest only leaving attributes blank if you're certain they are needed but you just don't know what values they should have. But if you're working as part of a team, perhaps this decision should be made by team and/or supervisor before the work begins.