Extending the HTML support to optional head and title