# Reusable code

**URL:** <https://forum.kirupa.com/t/reusable-code/309128>\
**Category:** web dev\
**Created:** [May 7, 2010, 2:48pm UTC](https://forum.kirupa.com/t/reusable-code/309128 "2010-05-07T14:48:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vandel212](https://avatars.discourse-cdn.com/v4/letter/v/85f322/32.png) [@Vandel212](https://forum.kirupa.com/u/Vandel212)\
**Post date:** [May 7, 2010, 2:48pm UTC](https://forum.kirupa.com/t/reusable-code/309128/1 "2010-05-07T14:48:26Z")

</div>

Hi, I was wondering if there was a way that you can reuse code in HTML. I’m making a website and I have a side bar with navigation controls. This is going to be part of the standard look of the website. So I was wondering if there is a way to have this on every page without copying and pasting it on the each page? Sort of like in C-programming where you would create a module and call it with just 1 line of code.

I cannot use frames for this either because I have a javascript flyout menu in the sidebar which would get cut off by the edge of the frame.

Thank you.
