Formatting to match other widgets

Add input type and CSS class to the title field.