You don't need to use code/tag in Dreamweaver. Select the part of code than you want to collapse and click on minus sign in the left gutter. Your code will be collapsed and Dreamweaver will remember this.
You can find more options in Edit, Code Collapse menu. For example, you can collapse HTML tag and its children by selecting Collapse Full Tag.