Applying Styles: CSS vs JavaScript


[JavaScript Syntax]
In this example, we show that styles can be changed in Netscape Navigator using either CSS or JavaScript syntax. This paragraph gets its style with <style> information assigned to the <p> tag via JavaScript.


[CSS Syntax]
In this example, we show that styles can be changed in Netscape Navigator using either CSS or JavaScript syntax. This paragraph gets its style via a style sheet class defined using CSS syntax.


Jim O'Donnell, jim@odonnell.org