Django SyntaxLesson 30Free preview
Django Tags
This lesson is part of Django · All levels
Summary
The template tag is written with a double square brackets containing keywords, for example {% if %} and {% for %}. The tag controls the logic of the display such as repetition and condition. Unlike a variable, a tag executes instructions.
Key points
- The tag is written with {%...}
- Different from the variable using {{...}}
- Tag controls the logic of the display
- Example tag: if, for, block, extends
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.