University Relations

UC Santa Cruz
1156 High Street
University of California
Santa Cruz, CA 95064-1077
Email: pioweb@ucsc.edu
Phone: (831) 459-2495

Web:

Web: Coding Issues

Style sheets

Use a style sheet to control layout and maintain settings from a single location.

Javascript

It is important that your HTML page should not require the user's browser have javascript enabled to properly view the content of or interact with your page. Javascript should be stored in external files (preferrably in a "scripts" folder) and added to your HTML page using the "src" attribute of the script tag. When including javascript code in your HTML page be sure to use "comment" tags to hide the code from older browsers.

META tags

Include META tags in the head of your HTML document to improve search engine listings. Limit your keywords tag content to 200 characters. Automatically create META tags for your pages using UKOLN's Dublin Core Generator.

Audio / Video / QTVR / Flash

For multimedia content, offer different versions optimized for various bandwidths. Inform users of the size of the file they are downloading (in MB or GB) and the duration of the content in minutes and seconds (mm:ss).

Code checking

Test pages using various browsers (including LYNX) and computer platforms. Validate HTML using the W3C's HTML validation tool. Refrain from making links to empty, "under construction" or otherwise incomplete pages. Regularly update and check accuracy of page content. Use current HTML code and features to guarantee proper display by all standard browsers. You can use Browsershots.org to see how your site looks in other browsers. For checking validity of links, Dreamweaver has a built-in tool to check sites for broken links. If using Firefox browser, consider using the link checker plugin.