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 trialkiran siddiqi
992 PointsThe preview window is giving me error for Index/. what am I doing wrong.
<!DOCTYPE html> <html> <head> <meta Charset "Utf-8"> <title>Kiran Siddiqi | Designer</title> </head> <body> <h1>Kiran Siddiqi</h1> </body> </html>
8 Answers
Zhuobin Zhang
5,364 PointsThe meta tag should be like this:
<meta charset="utf-8">
Will this work?
Zhuobin Zhang
5,364 PointsFor the meta charset attribute, you need to put a = in like the following.
meta charset="Utf-8"
Hope this helps.
kiran siddiqi
992 PointsThanks for the Answer i fixed it but I am still getting the same error which says:
Index of /
../ Index.html 14-Dec-2014 14:53 320
Here is my code:
<!DOCTYPE html> <html> <head> <meta Charset="Utf-8"> <title>Kiran Siddiqi | Designer</title> </head> <body> <header> <h1>Kiran Siddiqi</h1> <h2>Designer</h2> </header> <section> <p>Gallery will go here</p> </section> <footer>© 2014</footer> </body> </html>
Zhuobin Zhang
5,364 PointsWe need to add the <html> after <meta charset="utf-8">, and close it at the very end with </html>. I found the head element lacks a beginning tag: <head> Also the body element lacks a beginning tag: <body> in front of <header>
Can you put these three in and see what happens?
kiran siddiqi
992 PointsBefore i didn't know how to post my code in forum. This is what i have since beginning.
<!DOCTYPE html>
<html>
<head>
<meta Charset="Utf-8">
<title>Kiran Siddiqi | Designer</title>
</head>
<body>
<header>
<h1>Kiran Siddiqi</h1>
<h2>Designer</h2>
</header>
<section>
<p>Gallery will go here</p>
</section>
<footer>© 2014</footer>
</body>
</html>
Zhuobin Zhang
5,364 PointsI just found that the meta tag should be like this: <meta charset="utf-8">
Will this make it work?
kiran siddiqi
992 PointsI believe you forgot to add the example. Thanks for trying to help me.
kiran siddiqi
992 PointsHey Zhuobin Zhang thanks for help. Treehouse support resolved this issue this evening its working fine now. :)
Zhuobin Zhang
5,364 PointsGreat! Happy learning. :)