A headband, comprising a strap configured to bind a head, an adjustment assembly that adjusts the tightness of the strap, and an electronic device that enables an intelligent headband, the strap being connected to the adjustment assembly, and the electronic device being disposed within the adjustment assembly and connected to the adjustment assembly, wherein the adjustment assembly comprises an electronic receptacle for receiving the electronic device, a mechanical assembly for adjusting tightness of the strap, and a mechanical receptacle for an adjustment member to be placed, the electronic device is disposed within and connected to the electronic receptacle, and the mechanical assembly is disposed within and movably connected to the mechanical receptacle, wherein the mechanical assembly comprises a gear and a rack assembly, the rack assembly is meshingly connected to the gear, the gear is placed within and movably connected to the mechanical receptacle, and the rack assembly is slidably connected to the mechanical receptacle, wherein the rack assembly comprises a first rack and a second rack, the first rack and the second rack are located on two sides of the gear respectively, and are both meshingly connected to the gear, and the first rack and the second rack are both movably connected to the mechanical receptacle, characterized in that the headband further comprises a plurality of first electric wires and a plurality of second electric wires, the plurality of first electric wires are connected to the first rack, the mechanical receptacle, the electronic receptacle and the electronic device, and the plurality of second electric wires are connected to the second rack, the mechanical receptacle, the electronic receptacle and the electronic device. wherein the adjustment assembly comprises an electronic receptacle for receiving the electronic device, a mechanical assembly for adjusting tightness of the strap, and a mechanical receptacle for an adjustment member to be placed, the electronic device is disposed within and connected to the electronic receptacle, and the mechanical assembly is disposed within and movably connected to the mechanical receptacle, wherein the mechanical assembly comprises a gear and a rack assembly, the rack assembly is meshingly connected to the gear, the gear is placed within and movably connected to the mechanical receptacle, and the rack assembly is slidably connected to the mechanical receptacle, wherein the rack assembly comprises a first rack and a second rack, the first rack and the second rack are located on two sides of the gear respectively, and are both meshingly connected to the gear, and the first rack and the second rack are both movably connected to the mechanical receptacle, characterized in that the headband further comprises a plurality of first electric wires and a plurality of second electric wires, the plurality of first electric wires are connected to the first rack, the mechanical receptacle, the electronic receptacle and the electronic device, and the plurality of second electric wires are connected to the second rack, the mechanical receptacle, the electronic receptacle and the electronic device.