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
Omer Asadullah
10,415 PointsCheck my First Pairuptocode Exercise
Hello! This is my first html basics exercise done on pairuptocode.com. I have done it in almost one and a half hour. Please check it and give me any advice. Also please tell me that is it possible to change the color of the logo from pink to white?
Here is the link: http://codepen.io/anon/pen/fCFav
Here is the Part 2
http://codepen.io/anon/pen/GlDAK
Finally I completed the first exercise
Here is the final link
3 Answers
James Barnett
39,199 PointsIt looks like you reproduced the design well. Both the HTMl & CSS is clean, well-formatted, and well organized.
Next up run it through the W3C validator, you should find some areas that can use some improvement.
Also please tell me that is it possible to change the color of the logo from pink to white
No, as with most images the color of the image isn't changable with CSS.
Omer Asadullah
10,415 PointsI validated it and found some problems, fixed them. However, when I wrote 300px in html doc for the logo image width attribute, the w3c validator told me that px is a problem. They expected only digit. Is this a valid error. Should we use only digits in case we are adding height and width in html document?
James Barnett
39,199 PointsShould we use only digits in case we are adding height and width in html document
Yes, the width and height attributes assume pixels as a unit.
Omer Asadullah
10,415 PointsIn the second part the validator found a mistake that I should add border to the table through CSS instead of in html. I know that styling should be done through CSS but is adding border in html a mistake in the technical sense?
James Barnett
39,199 PointsIn coding there is always more than one way to do it, however not all solutions are created equal. Coding is different than math in the sense there's more than one right answer but also in the sense that an answer can be various degrees of "good".
Just because code is technically valid, doesn't make it good maintainable code, that's what the validator is letting your know, which is why it's a warning and not an error.
James Barnett
39,199 PointsJames Barnett
39,199 PointsThis is for part 1 of http://www.pairuptocode.com/exercises/htmlbasics.html