Export multi layered file to .SVG

Hello to all.

Is there any way that I can create a multi layered drawing and export it as .SVG file but preserve those multiple layers? I mean I need those layers to be independent in .html file but still to look like they are the same image. If the small drawings were regular shaped I could use them separately in .html, but, unfortunately, they aren't.

Thanks,

McChoby