As per title: I've a broken keyboard where the < and > keys don't work anymore. Can I insert such symbols with a Option + X combination?
I would prefer to avoid direct ASCII code numbers, if possible.
macOS doesn't do 'alt-codes', that's a Windows feature.*
Simplest solution might be to use the Keyboard Viewer, accessible from the Menu Bar once enabled in: System Preferences > Keyboard > Keyboard
On a UK keyboard they're accessed by pressing Shift ⇧
They can be made to work, though I feel they're more effort than really needed ;)
System Preferences > Keyboard > Input Sources > Plus sign > Unicode Hex input. After you choose it, you can do
003C, it'll show the
You can remap those characters to the option keys using Ukelele.
You could also set up keyboard shortcuts for them via: System Preferences > Keyboard > Text > Replace With