What html tags should I use? Maybe some JS libs?
Of course, it's better if it's cross-browser and platform independent.
I prefer the available SWFObject JS:
http://code.google.com/p/swfobject/
Includes lib and docs.
The most popular and "standard" one is SWFObject .
If you're using jQuery, flashembed from jQuery Tools is fine too.