Convert HTML / CSS from Adobe XD
Adobe XD has a plugin ecosystem where you can download a third-party built plugin to achieve tasks not supported by Adobe XD itself. For web export, I can recommend a plugin called "Web Export."
In order to use the plugin,
- Make sure you have the latest version of XD
- Go to
Plugins
>Discover Plugins
> Search "Web Export" - Click "Install"
Hope this helps!
Natively, you can't (yet), although some external plugins can help you achieve that.
Adobe XD is a prototyping tool, ie it has been designed for producing the designs of websites and app before passing it to a developer that will "manually" build the HTML/CSS/JS out of it.
However, the export to HTML/CSS/JS feature has been asked before by the community many times and the Adobe team is currently working on it (check this and this).