MMDT1022 HTML II and Javascript
Week 1
| Week 1 The best browser to use for Javascript debugging is Chrome. Controversy where to place Javascript <script> tags. In the head? At the end just before </body>? Async? Defer? Read the following: Discussion on Stack Overflow. Another discussion. Yet another view of performance by a book author.
|
| Lab Move the Ball Your instructor will show you an example to follow.
File 1 - Create a html document. This document needs a title of "Move the Ball - my name". This document contains 5 buttons. The buttons will be labelled "Up", "Down", "Left", "Right", and "Change Ball". Create a "ball" using the * character. Apply styling information to it to make it large and to give it an absolute positon. There will be no Javascript in this document. This document will, however, reference an external javascript file. File 2 - Create a javascript document.
Assignment is due one week from when it was assigned. 50% penalty if late. |