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

HTML How to Make a Website HTML First Use HTML Elements

David Aryeetey
David Aryeetey
6,258 Points

Bug here. It keeps asking me to enter character set for my meta element after I have already done so correctly.

Bug here. It keeps asking me to enter character set for my meta element after I have already done so correctly. Add question details...

Use HTML Elements Attach my code to this post. Email me when someone replies to this discussion. Start DiscussionCancel

could you please show your codes ?

Poul Larsen
Poul Larsen
5,902 Points

Hi Isaac Al-Wahaibi: No need to you can take the challenge in the upper right corner where the button says "View challenge"

Thanks Poul :), I don't need to take the challenge, I want to see what he is doing wrong so I can help him, anyway thank you again

Jason Anders
Jason Anders
Treehouse Moderator 145,860 Points

You're right to ask for code to be posted Isaac Al-Wahaibi. We do need to see the code in order to be able to help.

Thank-you for contributing in the forums! :) Keep Coding!

6 Answers

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hi David,

You have a space after your equal sign, which is causing a syntax error. (And, you don't need the trailing slash after the utf-8 declaration.

<meta charset = "utf-8" />               <!-- you have -->
<meta charset="utf-8">                    <!-- should be -->

:)

David Aryeetey
David Aryeetey
6,258 Points

<!DOCTYPE html> <html> <head> <meta charset = "utf-8" /> <title>David | Android Application Developer</title> </head> <body>
</body> </html>

Dude I did it without the title element and it still wasn't accepted.It must be a bug with their validation

Poul Larsen
Poul Larsen
5,902 Points

In the challenge you have to use meta charset="UTF-8" goes in between head tag

    <!DOCTYPE html>
        <head>
            <meta charset="UTF-8">
        </head>
        <body>
              <p>some text</p>
        </body>
    </html>
Poul Larsen
Poul Larsen
5,902 Points

if it still dosen't work, clean the cache in all your browsers, chrome, firefox, safari, etc, and deactivate the extenstion/plugin for firefox and chrome. clean you pc with CCleaner and test the code again with all your browsers.

David Aryeetey
David Aryeetey
6,258 Points

At Jason Anders we both know whitespace is not supposed to give us a syntax error. Lol But thanks that is what it was:). This must be one of those editor specific things. They are most annoying. You're right about the closing slash but I also like to do that with my line breaks. Thanks to the rest of you all for trying to help. You may check out my Android app and offer some tips and criticism so I can make it better.https://play.google.com/store/apps/details?id=com.abroscreative.notetaker Happy coding