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 trialJoseph Cadet
540 Pointsi need more help with my task 1
i need a better example of where to write the comments
<!--this application is going to tell a strory-->
<html>
</html>
1 Answer
tylerpostuma2
5,175 PointsHey Joseph!
Comments are really to help you organize code for yourself, and to help others read your code in the future. Some good examples are using them when you have something that you want to remember about your code, or just to keep it organized! I use comments in my code so that developers in the future can read the comments, and see what is going on in the website. If you want some examples of how to use them, you use them like this:
<!-- Here is my navigation bar! --> <nav> ... </nav>
or
<!-- This is where my images for the portfolio are going to go --> <img>
These can also be used as multi line comments:
<!-- This Is A Multi Line Comment -->
I know this is a bit long, but I hope it helped!
Happy coding!