Learning Aim C
In this section we will look at some simple client-side scripts, browser compatibility, exporting and compressing and suitable file types.
Scripts which run on the client's (user's) computer can do a number of things. We have already used built-in scripts to make a menu bar and open a browser window and there are quite a few others included in Adobe® Dreamweaver®, including ones to validate form entries. You can add your own scripts written in languages especially designed for web page scripts, like Java Script and AJAX.
You can find many JavaScript examples on the internet.
There are many different browsers in use (Explorer, Firefox, Chrome, etc. ). Not all HTML features are supported by all browsers and older versions of browsers will not support the newer features. To ensure your web pages are compatible with different browsers, you need to load each page into a selection of the most popular browsers to see it they load correctly and display as you expect.
Digital assets such as images, audio clips and videos need to be prepared for inclusion in a web page. These assets often have large file sizes and may take a long time to download unless they are compressed. Image and video files need to be set to a suitable size and resolution to make sure their file size is not unnecessarily large.
Although you can preview your web pages in a browser locally on your computer, your web pages need to be uploaded on to a web server before they are available on the internet. In addition, you will need to choose a web hosting company.
Many organisations run web servers and offer a web hosting service. Most charge for this, although some offer the service for free (but include adverts in the pages).
Having chosen a web hosting company you will then need to up load your website files (everything contained in the local website folder, including images and other media) to the hosting company's servers. This is normally done using a web-based control panel program provided by the web hosting company.
Simply uploading your pages on to a web server won't make them available on the internet, because no one will be able to find them. Your site will need to be assigned a domain name, which is unique to the site.