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

Casey Dillon
817 PointsText Color
How do I change the text color of different lines and not just headers?
I assume I need the label to identify which line or paragraph?
2 Answers

Nicholas Vogel
12,318 PointsYou'll learn more when you get into CSS, but with html you can add a style property like so:
<p style="color: white">Hello</p>
There are predefined colors, but you can also use hex and other values.

Casey Dillon
817 PointsOkay, Thanks. Getting started is pretty easy, staying with it is a bit more difficult. Any advice? I would like to move into some development part time and eventually move to full.

Samuel Caldwell
2,627 PointsI am right there with you Casey. What has helped me stick with learning how to program is to make it a part of my schedule. I have trouble sticking with things if I leave it up in the air when I am going to do it. This means if I want to stick with something it has to be a part of my daily schedule and not just whenever I have "free time". It was similar with when I wanted to workout more and I just was working out whenever I wanted instead of making it a daily habit. What I would do is sit down and look at your schedule and see when you have open time. I work a full-time job so I can't really get any programming done between 8 and 5 that meant I needed to find time outside of that. So during the week my 730-930 is devoted to programming either on Team Treehouse (which is one of my favorite resources actually) or one of the others such as codecademy or udemy etc. I also schedule out time on the weekend to do more extensive programming work where I can actually sit down for more than one or two hours and dive into learning. Another thing that has helped me is to read when I can not actually program. Read about programming, read about what you are currently learning. I have a book on HTML and CSS as well as a couple of books on Javascript. Those are currently what I am trying to learn and it helps to read about it when I can't actively watch videos or do work on one of these online programming sites. One last thing I hear really helps get your mind around learning how to program is to write out code. Just practice creating a website or writing down how you change the color of text or things like that to help cement the syntax into your brain.
In the end, it just comes down to how much time you want to devote to learning and how serious you are about getting a job in web or software development. If you really want to do it you will set aside time. So think about how much you want to do this and where you want to be in 6 months and work towards making that a reality. If you start learning really well you can always volunteer to help some local nonprofits with their website just so you can add some things to your portfolio. Keep learning and keep practicing and you will definitely get to where you want to be.
Samuel Caldwell
2,627 PointsSamuel Caldwell
2,627 PointsNicholas is right. You'll get into an entire section on changing colors of text and backgrounds when you get into CSS. http://www.w3schools.com/tags/att_font_color.asp that link will show you another way to change color of a block of text. Asking here is great but also consider googling. You'll find some really great sites that have tons of information (granted it can be a bit overwhelming the amount of information) but I got introduced to w3schools site by googling a question I had. It has a ton of information if you are ever wanting to delve more into HTML or CSS and even javascript and other languages.