What Is a Tag? Explaining the Different Meanings in HTML, Social Media, and Marketing

June 17, 2026

Author: Shusaku Yosa
タグとは?HTML・SNS・マーケで使われる意味の違いを解説

The word "tag" appears in many different situations across the web and marketing, but its meaning changes completely depending on the context. This article explains what a tag is from the basics, and clarifies how its meaning differs in HTML, social media, and marketing.

What Is a Tag? The Basic Meaning

A "tag" is a marker or label attached to information. Originally an English word referring to a price tag or luggage tag, in the IT and web world it is widely used to mean "a marker attached to data or content for classification and identification." Because what it refers to differs greatly by context, the role of an "HTML tag," an "SNS tag," and a "marketing tag" is entirely different. Let's look at each one in detail.

Tags in HTML

HTML tags are descriptions used to define the structure and elements of a web page. They are written enclosed in "<" and ">", and most are used as a pair of an opening tag and a closing tag. Common tags include h1 through h6 for headings, p for paragraphs, a for links, img for images, and ul and li for lists. These tell the browser "this is a heading" or "this is a link," forming the skeleton of the page. From an SEO perspective, the title tag and heading tags serve as important cues that convey the page content to search engines.

Tags in Social Media (SNS)

On social media, "tag" mainly refers to two types: the "hashtag" and the "mention (tagging a friend)." A hashtag is a keyword prefixed with "#" (for example, #cafehopping), a feature that groups posts on the same topic together and makes them easier to find through search. On Instagram, X (formerly Twitter), TikTok, and other platforms, it plays a role in increasing the discoverability of posts. On the other hand, mentions and tagging use "@username" to specify a particular person, and are used when tagging a friend in a photo or sending a notification to someone in a post.

Tags in Marketing

In a marketing context, a tag often refers to a "measurement and analytics code" embedded in a website. Specifically, these include Google Analytics, conversion tracking tags for ads, and retargeting tracking tags. By placing these on a page, you can collect data such as visitor counts, behavior, and outcomes. To manage multiple tags efficiently, it is common to use a "tag management tool" such as Google Tag Manager (GTM). It lets you add and edit tags from a management screen without directly rewriting the code.

Summary of the Three "Tags"

Even though they share the name "tag," their roles differ greatly: an HTML tag is "a description that builds the structure of a page," an SNS tag is "a marker that classifies and surfaces posts," and a marketing tag is "code that measures data." What they have in common is the fundamental meaning of "a marker for identifying or classifying something." By using them correctly according to context, your understanding of web-related conversations and documents becomes much smoother.