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
Jeffery Austin
8,128 PointsSolved: I created an html file and it will open in my browser but is not displaying anything?
There was something wrong with my inline styling....
2 Answers
Katherine Duncan-Welke
iOS Development with Swift Techdegree Graduate 33,030 PointsMake sure you're formatting the file correctly, with all of the parts intact, like this:
<!DOCTYPE html>
<html>
<head>
<title></title>
<style> /* include css here */</style>
</head>
<body>
<!-- your page content here -->
</body>
</html>
If the structure is wrong, the file won't be read correctly.
Jeffery Austin
8,128 PointsI tried copying and pasting my code with my question but it didn't all display. I do have my DOCTYPE html and opening and closing html as well as body. Paragraph syntax. All of it is there. I'm not sure what else to do?
Katherine Duncan-Welke
iOS Development with Swift Techdegree Graduate 33,030 PointsCheck for any typos or unclosed tags - other than that, I'd have to see all the code to be able to check it over.
Jeffery Austin
8,128 PointsI fixed it. I deleted some of my inline styling and now it's displaying. Not sure what was wrong with my inline styling.
Jeffery Austin
8,128 PointsJeffery Austin
8,128 PointsI tried to copy and paste the code but it's not displaying the same. My <!DOCTYPE html> is present and my opening and closing html is there.