For every layer, Illustrator will create a new <g> tag where the ID = the layer name:
- spaces will be converted to underscores
- dashes remain unchanged
- other characters are converted to HTML entities
So, a layer named id menu-float will produce <g id=”id_menu-float”>
This ID can then be used for animation or CSS.