Brackets are punctuation marks used in pairs to set apart or interject text within other text. With respect to computer science, the term is sometimes said to only strictly apply to the square or box type.
All these forms may be used according to typographical conventions that may vary from publication to publication and may vary even more from language to language. Some typical uses in English texts follow.