Previous Page Next Page

Summary

In this hour, you learned how to use template tags to add logic in your templates. You learned how to generate several lines of HTML code from a list using the for tag. You also learned how to add HTML code conditionally using the if, ifchanged, ifequal, and ifnotequal tags.

Using loops, conditions, and other tags enables you to write simpler and more useable code and makes it easier to modify and update your website.

Previous Page Next Page