Is there a way I can make and apply custom HTML styles (HTML tags to put before and after selected text) onto text?

Maybe something like this?