Closing an HTML page properly

  • 1
  • Question
  • Updated 5 years ago
  • Answered
  • (Edited)
I have a page that has an HTML widget, then a form (in a different HTML widget) then another HTML widget. This is the only way to get the form how I want it.

For "proper" HTML5 I should have a DOCTYPE, HTML, HEAD and BODY included. Should these be closed inside the first HTML section or in the last one?
Photo of Philip Taylor

Philip Taylor

  • 355 Posts
  • 66 Reply Likes
  • unsure

Posted 5 years ago

  • 1
Photo of Stefan

Stefan, Official Rep

  • 4448 Posts
  • 190 Reply Likes
Hello Philip

All Yola websites automatically create a head section with doctype, etc. The content area of your page is automatically inlcuded in body tags. So you won't need to add these things to the content area of your page again. You can just try to add the bit of your original code that you find between the body tags.

If your code doesn't work, you could consider to add things to your head section by using the Site Tracking area (Site > Tracking, for Yola Silver and Yola Gold users only). However, as this is a sensitive area that applies to your whole website, adding code there is at your own risk.

In many cases where one adds custom HTML code to a page of a Yola website, it's not necessary to add anything to the head section of your website. However, it depends on the code you want to add, and what your code is supposed to do. If you'd like to get more detailed help with this, you could post your code here for us to have a look.
Photo of Philip Taylor

Philip Taylor

  • 355 Posts
  • 66 Reply Likes
Thanks Stefan.
I wasn’t sure what was “behind the curtains” with respect to headers etc, or what the HTML widget did – a div or similar I guess.
I’ll be able to work with what you’ve given me. Thanks again.