On the W3 tutorial, it shows htis code:
It does all get commented out.
In a bowser without Javascript everything between will be commented out.
Try to think of it this way: If you tried this code
then Javascript would throw an error.