This is the modern way to configure VLANs. A useful feature is that you can configure a range of VLANs with a single command.
Switch(config)#interface range <range>
|< – >||Allows for a continuous range to be specified such as interface range fa0/1-24|
|< ,>||Allows for a specific interface to be selected such as interface range fa0/3 , fa0/10|
In the below example we will disable ports Fa0/1-24 on SW1.
SW1(config)#interface range fa0/1-24