• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 4. Content

Chapter 4. Content

There is a saying among Web designers and developers: “Content is king.” The Web is all about presenting the content that the visitor needs and expects, at the right time and in the right place. Generating the actual content (text, images, forms, tables, sounds, animations, video, and so forth) is up to you. But in this chapter I want to explore several ways to place content into an HTML file.

Imagine you are designing a large Web site with the same header on every page. Every time you need to change the content of the header, you must change every page. Not only is this process time-consuming, but the possibility of making mistakes is high. Wouldn’t it be nice to have that menu in one file and import it into each page as the visitor uses the Web site? Then you can correct one file and have the changes reflected throughout the site.

To do this, you need a way to import external content into HTML files. You can use any of several methods, each of which has strengths and weaknesses.

In addition, we will look at ways to use JavaScript to generate new content dynamically after the page has been loaded.

  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint