Why does HTML mailto link open Brave browser? I'm a web developer working on macOS &quot;Big Sur&quot;.  I've noticed recently that if I create a web page in Visual Studio Code that contains an HTML anchor tag with a &quot;mailto&quot; href attribute and I launch a local web server using the Live Server extension, if I click that link, my Brave browser opens up.  What I would expect is that the Apple Mail application would open.
&lt;body&gt;
  &lt;a href=&quot;mailto:smith@mac.com&quot; id=&quot;email&quot;&gt;smith@mac.com&lt;/a&gt;
&lt;/body&gt;

Is this a macOS problem or should I blame the Visual Studio Code extension?
mailto: links open in the system's default Email Reader. You might have this configured as Brave.
On macOS you change the default Email Reader from Preferences inside the Apple Mail app. See https://support.apple.com/en-us/HT201607
In Chrome, there is also a setting to determine which website (e.g. Gmail) handles the protocol, I assume Brave works similarly: https://support.google.com/a/users/answer/9308783?hl=en