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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![harry green](https://secure.gravatar.com/avatar/0b98a8b50eaa70497caba2fb4385063e?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
harry 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](https://uploads.teamtreehouse.com/production/profile-photos/969492/micro_tool_chess_set_2.jpg)
Steven Parker
230,688 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](https://uploads.teamtreehouse.com/production/profile-photos/9576542/micro_IMG_0011.jpg)
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.