A basic HTML template (containing an flash program)

Web pages can contain many different types of data, including text, pictures, and sounds, as well as containing programs such as java or flash based animations. Below is a sample HTML template for use when "embedding" a flash program into a web page.

Below is a minimal HTML "web page". It has "code" in it to load a flash program, but you can delete that code if you do not need it. Note that the web page and the flash code (the .swf file) must be in the same directory).

        
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
          <title> Web Page 'Browser' Title   </title>
          <meta name="author" content="Your Name"/>
        </head>

        <body>

          <!-- CS XXXX WEB Page -->
          <!-- Author: Your name here -->
          <!-- Date: Date of completion here -->
          <!-- Assignment:  HW? -->

          <h1> Welcome to my Web page </H1>

          <p> Here is my Flash Program: </p>
          <!-- use both embed and object for FF vs WE -->

          <object 
                data="flash_program_name.swf"
                type="application/x-shockwave-flash"
                width="1025" height="800" >
            <param name="quality" value="high" />
            <param value="flash_program_name.swf(repeated)" name="movie" /> 
          </object>

      
        </body>
      </html>
        
      

The Embed Tag

At some point you may come across the "Embed" Tag. In previous versions of web browsers, this non-standard tag was necessary to get flash animations to show. This is no longer the case. If you wish to support old browsers, you will have to add this inside the object tag, but I suggest you just encourage people to upgrade.