Using the HTML Element

Published: Tuesday, June 16, 2009

Updated: Tuesday, July 27, 2010 13:07

The HTML element is an element designed for advanced users who want to add custom code to their Web Site. This article will cover the basics of how to use this element effectively, but will not cover writing basic HTML code.

To create a new HTML element, select "HTML" from the element drop down and press "create."

In the HTML/VTL tab you can write any custom HTML code you are looking to have on your Site. The HTML element also accepts JavaScript calls.

NOTE: You must close all HTML tags properly, or it will affect the layout or appearance of your Site.

The Files tab in the HTML element allows you to upload files and reference them directly from the HTML element. Acceptable file types include .JPG, .GIF, .PNG, .PDF, .JS, .HTML, etc. The Files tab inclues instructions for referencing the uploaded files, and gives an example of referencing an image file. You can use the same file reference for other HTML items as well. For example, here is how you would reference a JavaScript file uploaded to the Files tab:

<script src="#file({'filename': 'yourjsfile.js', 'contentId': $content.contentId, '':''})" type="text/javascript"></script>

NOTE: Customizing your site with JavaScript is for advanced users. College Publisher staff does not provide custom script debugging services.

Recommended: Articles that may interest you