Use "ndashes" – like these – to separate clauses in sentences. The HTML code to use is –
Use hyphens elsewhere (compound adjectives, for example).
The particle detector – housed in a custom-built cavern 100 metres below ground – is made up of concentric subdetectors.