I find Leanote to be rather good. It supports multiple notebooks, tags, Markdown with code highlighting, pasting images straight from the clipboard and is browser based although an Electron app is available.
Notes can be backed up to files in batches and also re-imported via the Electron app.
It can be self hosted (open source and written in Go) but they also offer paid hosting plans.