In HTML, a tag is a piece of code, which describes how a web page is formatted. The tag appears between the open and closed bracket, e.g. <b> is the start tag, indicating that the following text should be bold, and the end tag </b> stops subsequent text being displayed as bold.