Tag

Updated: 10/07/2019 by Computer Hope

A tag may refer to any of the following:

1. With HTML, XML, and other markup languages, a tag is an element inserted into a document or file that changes the look of content or performs an action. Below is an HTML element with an open tag (start tag) showing the name and attribute, and a close tag (end tag) showing a forward slash and open tag name.

HTML tag

Each tag is contained between less than and greater than angle brackets, and everything between the opening and closing tag is displayed or affected by the tag. In the example above, the <a> tag is creating a link called "Computer Hope" that is pointing to the hope.html file.

For tags with no closing tag, like the <img> tag, it's best practice to end the tag with a forward slash, as shown below.

<img src="https://www.computerhope.com/logo.gif"/>

Related pages

Tag cloud

2. A tag is a short (usually one word) description of an HTML object or link. These tags are often placed in a tag cloud (weighted list or word cloud) to show the most popular website or blog words, and to help visitors find information of interest.

The picture is an example of a tag cloud of the text contained on this page that was generated using the TagCrowd website.

3. A tag is a memory that acts as an index for L2 (Level 2) cache.

Hashtag, Internet terms, Keyword, Memory terms, Meta tags, Web design terms, XML