![]() | Web Design / HTML |
More Dreamweaver Tips and TricksMy Favorite Dreamweaver ExtensionsMacromedia Dreamweaver ResourcesHow to Create an Image Map with Dreamweaver Other Ways to Include HTMLHow Do I Include One HTML File in Another Using Dreamweaver?Use the Dreamweaver LibraryOne of the most popular questions I'm asked about HTML is how to include one bit of HTML code in another Web page, without having to re-write the code every time. Unfortunately, this is not possible with straight HTML. You can do it with other technology, but that usually requires that you have server technology like SSI or PHP or that you learn JavaScript. Dreamweaver To the RescueLuckily, Dreamweaver recognizes that this is a very important part of Web page development. If you've ever built a site with more than around 10 pages, you'll recognize the value in having shared include files that you can edit once and update your entire site. Dreamweaver calls these include files "library" files and they are stored in the assets of your Web site in the Files tab. Before you can create a library item, you need to create a Dreamweaver site. The library item will then become an asset available to that entire site. Create a Dreamweaver Library Include File
Once you have a library item, you can use it on any page in your site. Simply drag the library item to the new page, and Dreamweaver will place code there indicating that the code displayed is a library item. Updating a Library ElementThe true power in the library items is not in creating them, but in re-using them. You can place your library items on any page in the Dreamweaver Web site it is defined in. Then when you edit it, Dreamweaver will update every page that is using that library item.
Once you've updated all the files in your site, you'll need to upload them all to your server. If you forget to upload them, they won't be changed for your customers. More Dreamweaver Tips and TricksMy Favorite Dreamweaver ExtensionsMacromedia Dreamweaver ResourcesHow to Create an Image Map with Dreamweaver Other Ways to Include HTML |
Las Vegas on a BudgetFind a BargainHotel DealsCheap EatsFree AttractionsEntertainment for Less |
All Topics | Email Article | | | ![]() |
| Advertising Info | News & Events | Work at About | SiteMap | Reprints | Help | Our Story | Be a Guide |
| User Agreement | Ethics Policy | Patent Info. | Privacy Policy | ©2008 About, Inc., A part of The New York Times Company. All rights reserved. |


