Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML

Mauro Sastre
PLUS
Mauro Sastre
Courses Plus Student 7,396 Points

Reusable html, css and javascript code

Hey, I am new to front end development, and I have been working on a web page as a practice project. Right now, I have finished the home page, but then I started to think about how to use what I have already done, so I don't have to repeat code for the header, navigation menu, footer... This is something related to create templates to reuse the html, css and javascript code I have already written.

My question is, is there a course in tree house where I could learn about reusing my code to develop web pages?

thanks a lot.

1 Answer

Steven Parker
Steven Parker
220,378 Points

Are you sure you need a course?

It sounds like you're already on the way to creating your own templates. Depending on the kind of work you do, you'll probably find more things from time to time that are worth adding to your templates.

The exact contents of your templates may become very customized, and if you do more than one kind of work, you may end up with several sets of them. But your own work habits and style will do a better job of determining what goes in your templates than a course would be likely to do.

Mauro Sastre
Mauro Sastre
Courses Plus Student 7,396 Points

Thanks a lot Steven for your answer. Yes, you are right, I am on the way to create my own templates. I have been investigating about how to create them, but I still don't find like a method I can totally understand. I am still looking for it, but I just thought about looking for a course in tree house where I could find like some steps to create and use the templates. Again, thanks a lot for taking the time to answer.