Add an HTML code fragment to a Web page

Using your own HTML code, you can add objects, such as counters and scrolling marquees, or scripts, such as VBScript, to your Web site. Be aware that Microsoft Publisher does not check your HTML code fragment for correctness.

  1. On the Insert menu, click HTML Code Fragment.
  2. Click the place on your Web page where you want the HTML code fragment to appear, or position the mouse pointer where you want a corner of the HTML code fragment frame to appear. Click, and then drag the mouse diagonally.
  3. In the HTML Code Fragment box, insert your HTML code fragment by typing or pasting from another source over the entire placeholder text.
  4. Click OK.

Your code fragment appears as code in the frame on your Web page, and the result of your code fragment appears when you preview or publish your Web page.