How to add subject in custom email template?
You can write email subject to in your email .html file
<!--@subject {{trans "Your Subject Write Here "}} @-->
You can pass subject dynamic by follow below example
<!--@subject {{trans "Welcome to %store_name" store_name=$store.getFrontendName()}} @-->