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 trialharry green
1,412 PointsWhy are you writing your css code in the html file?
Why are you writing your css code in the html file?
- this it what you said not to do as it gets very complicated but your doing it anyway. Why?
Thanks.
2 Answers
Steven Parker
231,236 PointsPotential reasons to use inline styles are explained in the video:
But inline styles may come in handy when creating quick HTML and CSS mockups. Or, if we're in a pinch, we can use the inline style method for debugging purposes or writing temporary fixes.
svenvanzijl
573 PointsHe is making an example what web developers had to do to give their website a presentation like text color and etc, before the release of html4 and to give you a view and guide how that works as well.
and what Steven Parker said it can be used for temporary fixes and for quick HTML and CSS mockups. where you can use inline style method for debugging or writing temporarily is not the best option but it can help to see some quick CSS on your website.