When Building external Suitelet forms, the user/client may need to see the Company logo or other dependent images of the form. This image needs to be shown above the Title of the Form.
In such cases append an image tag as a prefix to the title label and source the URL of the image.
For example,
let image= "<div><img style='top: 5px;' src='" + imageUrl + "'/></div>";
serverWidget.createForm({
title: image + "Title",
});
After adding the same, the logo will be shown above the Title. But adding the html tag causes the browser tab label to show HTML code. To prevent this, use window.Document.Title = ‘Title’;