I don't think I want to get in the way of you learning and achieving what you want in the way that best suits you.
However, I feel the need to say a couple more things in case it saves you work.
- I reiterate that MSWord will automatically wrap certain tags around your text if you apply the correct built-in style. e.g. if you apply style 'Heading 1' to your heading text then the output HTML will be <h1>My heading text</h1>
- Regarding the id attributes in your <h1> and <h2> tags. If you've put these in to help create a TOC at some point, you may like to know that it isn't actually necessary. If you tell calibre that your Chapters are defined by <h1> and/or <h2> then it will do all the required work to create a perfect TOC.
- You may find it easier to get the fonts you want on your reader by using more generic specification of font-family in your CSS. e.g.
Code:
h1 {font-family: monospace;} rather than Courier
h2 {font-family: sans-serif;} rather than Verdana
and, although I notice your example specified Courier as its default text, if you wanted it to be a serif font then
Code:
body {font-family: serif;}
Your reader will then use its default monospace, sans-serif, serif fonts to display your text.
If you want to customise your reader's default epub fonts you can change them, but that's a story for another day.
As for actionscript cookbooks - you're way beyond me there