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 trialGillian Singletary
1,093 PointsError in project files
The email input uses the type "email" rather than "text" which leads to an error if you follow the video exactly, which calls for selecting a [type="text"]
5 Answers
James Barnett
39,199 PointsGillian Singletary - I see what you mean
For the project files of the Basic Attribute Selector video in the index.html
file in the start
folder on line 18 there's this line
<input type="email" name="email">
However in the video at time index 3:40 of the video there's this line
<input type="email" name="email">
Which is selected with this CSS at time index 4:00 with the CSS
input[type="text"]
That's confusing because that selector won't work against line 18 in the html of the start file. Tagging Guil Hernandez on this one.
James Barnett
39,199 PointsIt's 2 separate yet equally valid examples. First it uses the text attribute selector against an input field of type text
. Then later Guil changes the input field to type email
and changes the attribute selector to select against email.
Let us know if you have anymore questions about this video.
Gillian Singletary
1,093 PointsI understand the video and that both descriptors are valid, I just wanted to let you know that the text-->email change was already made in the project files and so was a little confusing when following the tutorial since I had to change it from "email" to "text" and then back again.
James Barnett
39,199 PointsThere are 2 folders in the project files. start
and final
.
The CSS in the folder named final
shows the state of the code at the end of the video.
Are am I missing something?
Gillian Singletary
1,093 PointsDid you check the code in the "start" folder as well? My comment applies to that code.
I don't have an issue or a question. I was trying to help future people who take the class by point this out but frankly it seems like I'm just causing you a headache so forget it.
Guil Hernandez
Treehouse TeacherHi there,
Yep, we're aware of that glitch. Sorry for the confusion – we're looking to get that fixed soon. :)