Teach students to be able to retrace their steps at any point when editing code

Trial and error approaches are central to coding or editing code. Show students how to organize their editing in such a way that they can always undo the changes they’ve made in the code. Always keep copies of different versions of the HTML and CSS files they are working with. Show students how to comment in the code.