The forum tips and tricks give you some hints about the formatting
And about the libraries, I’d guess you got a CD or at least a link with the book that should provide you with the needed libraries.
Copy or download them and put them alongside your HTML file in a dedicated directory and then open the HTML file.
We’ve now seen several people with the same or similar question. Are there no instructions in the introducing section of the book of how to use the samples?