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 trialKatie Kranz
1,546 PointsI am typing the code verbatim and when I go to preview the page, the code is not rendering. Why is this happening?
For example:
<html> <head> <title>Lake Tahoe</title> <style> p { font-size: 20px; font-weight: bold; }
h1 {
font-size: 90px;
color: firebrick;
}
header {
background-color: orange;
}
</style>
</head>
2 Answers
Karn Patel
3,291 PointsI had the same issue, the problem is the browser cache--meaning the browser has a saved version of the page and you won't see changes like a change in background color unless you refresh many, many times. A way of getting around this is opening up developer tools on Chrome (browser), clicking "network" and then "disable cache". You can find this tool on the chrome browser by clicking View >> Developer >> Developer Tools.
Once you click disable cache, every time you refresh the page after making a minor change, the change will be represented on the webpage.
Hope that helps
Steven Parker
231,248 PointsThere are two common reasons for this:
* you forget to save your changes (with the menu or control-s shortcut)
* you forget to refresh your browser where the preview is displayed
Katie Kranz
1,546 PointsOkay I will try doing that. Thank you. If this doesn't work, could it be that there is a tech error happening with Workspace?
Leena Thampan
Front End Web Development Techdegree Student 1,806 PointsLeena Thampan
Front End Web Development Techdegree Student 1,806 PointsHi Karn, I tried disabling the cache using the developer tools, but the style changes are still not rendering properly. It only appears to be affecting the font-weight selector.
<style> p { font-size: 20px; font-weight: bold; } </style>