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 trialZubair Siddique
4,889 PointsHow come they went on quickly without explaining new selectors like #type or #placeholder ?
Track was going well.
How to make a website = finished CSS Basics = finished CSS Selectors = a bit confusing
It would be better if they had started building Contact Page from scratch. I believe it would be a 5min video. So that, we might have learnt where they have put new selectors like 'type' or 'placeholder' and why?
1 Answer
Karl Pupé
6,718 PointsHi guys!
I also found a page that explained attributes really well
http://www.w3schools.com/html/html_attributes.asp
I hope that this is helpful
Hüseyin Yücel
3,553 PointsIt was! Thanks :-)
Unsubscribed User
14,667 PointsUnsubscribed User
14,667 PointsYou mean the attributes type and placeholder? Basically this is HTML, they can be targeted with the use of CSS though.
Attributes add additional information to a HTML element. They always have a name and a value.
The type attribute defines the type of the input element. Its default value is text. Here you can read more about the different input types: Input type
The placeholder attribute defines the 'short hint'(like: "enter your username"), that is visible in the empty input. It can be used on several input types. Here you can read more about the placeholder attribute: placeholder