# Tags ## [`#`](https://docs.djangoproject.com/en/stable/ref/templates/language/#comments) ``` ... ``` ```html {# ... #} ``` ## [`autoescape-off`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#autoescape) ```html ... ``` ```html {% autoescape off %} {% endautoescape %} ``` ## [`autoescape-on`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#autoescape) ```html ... ``` ```html {% autoescape on %} {% endautoescape %} ``` ## [`block`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#block) ```{note} The end tag can optionally have a name attribute. If it is missing, the `endblock` will use the name attribute from the start tag. ``` ``` ... ``` ```html {% block content %} ... {% endblock content %} ``` ## [`csrf`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#csrf-token), [`csrf-token`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#csrf-token), [`csrf-input`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#csrf-token) ```html ``` ```html {% csrf_token %} ``` ## [`comment`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#comment) ```html ... ``` ```html {% comment %} ... {% endcomment %} ``` ## `css` ``` ``` ```html ``` ## [`debug`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#debug) ```html ``` ```html {% debug %} ``` ## [`extends`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#extends) ``` ``` ```html {% extends 'base.html' %} ``` ## [`filter`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#filter) ``` ``` ```html {% filter ... %} ``` ## [`lorem`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#lorem) ```html ``` ```html {% lorem %} ``` ## `image` ``` ``` ```html ``` ## [`now`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#now) ```html ``` ```html {% now %} ``` ## [`spaceless`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#spaceless) ```html ... ``` ```html {% spaceless %} ... {% endspaceless %} ``` ## [`templatetag`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#templatetag) ``` ``` ```html {% templatetag ... %} ``` ## [`verbatim`](https://docs.djangoproject.com/en/stable/ref/templates/builtins/#verbatim) ```html ... ``` ```html {% verbatim %} ... {% endverbatim %} ```