# Are \<html\> tags needed in templates?

**URL:** <https://forum.djangoproject.com/t/are-html-tags-needed-in-templates/806>\
**Category:** Using Django\
**Created:** [January 9, 2020, 12:43am UTC](https://forum.djangoproject.com/t/are-html-tags-needed-in-templates/806 "2020-01-09T00:43:38Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jash11](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/jash11/32/687_2.png) [@jash11](https://forum.djangoproject.com/u/jash11)\
**Post date:** [January 9, 2020, 12:43am UTC](https://forum.djangoproject.com/t/are-html-tags-needed-in-templates/806/1 "2020-01-09T00:43:38Z")

</div>

Do I need to include the HTML \<!DOCTYPE\> and the root tags in django templates?  
In [the tutorial](https://docs.djangoproject.com/en/3.0/intro/tutorial03/) it shows just the body’s content in the templates:

detail.html:

```auto
<h1>{{ question.question_text }}</h1>
<ul>
{% for choice in question.choice_set.all %}
    <li>{{ choice.choice_text }}</li>
{% endfor %}
</ul>

```

Is the “\<!doctype html\>” and “\<html\>\</html\>” omitted for brevity, or does django automatically add it?

---

_[View the full topic](https://forum.djangoproject.com/t/are-html-tags-needed-in-templates/806)._
