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

CSS CSS Foundations Selectors Basic Attribute Selectors

Gillian Singletary
Gillian Singletary
1,093 Points

Error 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
James Barnett
39,199 Points

Gillian Singletary - I see what you mean :satisfied:


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
James Barnett
39,199 Points

It'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
Gillian Singletary
1,093 Points

I 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
James Barnett
39,199 Points

There 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
Gillian Singletary
1,093 Points

Did 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
STAFF
Guil Hernandez
Treehouse Teacher

Hi there,

Yep, we're aware of that glitch. Sorry for the confusion – we're looking to get that fixed soon. :)