| Computer Science |
Peter Coxhead's Web Information Page:
XML, XHTML, CSS and Javascript
I previously taught a module called Information and the Web. Some of the material developed for this module (and for other purposes) may be more generally useful, so is linked from here.
Summaries & Libraries | ||
| XHTML | Summary of Core XHTML ISO Latin1 alphabet (special characters) Sample web safe colours | |
| CSS | Core CSS Properties & Values | |
| Javascript | Libraries | |
Teaching Material | ||
| XML & DTDs | Introduction to XML Valid XML & DTDs | |
| XHTML | Introduction to XHTML Summary of Core XHTML | |
| CSS | Introduction to CSS Core CSS Properties & Values | |
| Javascript | Introduction to Javascript for Java Programmers (includes links to the examples) | |
| Javascript examples | Example 1-1 | General demonstration of Javascript |
| Example 1-2 | Action with a button | |
| Example 1-3 | Actions with a button | |
| Example 7-1 | document.write(); dates and times | |
| Example 7-2 | Calculations with dates | |
| Example 12-1 | onclick attribute & event handling | |
| Example 12-2 | Event handling; simple Javascript calculator | |
| Example 14-1 | Manipulating CSS | |
| Example 14-2 | Manipulating CSS; using objects | |
| Example 14-3 | Allowing user interaction with objects | |
| Example 14-4 | Animation via CSS [Firefox or Safari] | |
| Example 15-1 | Manipulating HTML | |
| Example 15-2 | Creating HTML elements; see also a Javascript version of the '15' puzzle | |
| Example 16-1 | Requesting and using an XML file (simple display) | |
| Example 16-2 | Requesting and using an XML file (creating a table for display) | |
| Example 16-2a | As Ex16-2, but with dynamic sorting | |
| Example 16-3 | Requesting and using an XML file (with partial display of the data) | |
| Example 16-4 | Requesting and using specific XML | |
| Additional Material on Javascript | Information Hiding & Inheritance in Javascript | |
| Javascript Libraries | A separate web page describes a number of Javascript libraries which may be of use to others. These provide functions to handle 'writing' to web pages, sets, binary trees, matrices, etc. | |
Notes
In developing the resources linked from here, versions of Firefox extant around 2008 were used. Compatibility with other browsers and later versions of Firefox is not guaranteed!
XMLEditor, also available on multiple platforms, is a useful piece of software for checking the validity of XML documents.