Skip to main content

What is Tag?

A tag is a keyword used in HTML, XML and other markup languages to format web page content.

A tag is a keyword used in HTML, XML and other markup languages to format web page content.

Detailed explanation

Tags are elements used in markup languages, which are text-encoded systems for formatting documents and web pages. These allow you to add or change the content (images, folders and files) and web-based actions (clicking a button or adding a hyperlink).

Each tag contains two parts: an opening and a closing. These are usually represented by the “less than (<)” and “greater than (>)” symbols. You must close an open tag in HTML for the command to work. For example, <linktree> is an opening tag, and </linktree> is its closing tag. Although both look similar, the closing tag has a forward slash (/).

Here are a few basic HTML tags.

– Head tag: The <head> tag contains a web page’s metadata. – Title tag: The <title> tag specifies the page’s title shown in the address bar and search engine results page (SERP). – Body tag: The <body> contains the web page’s content. – Paragraph tag: The <p> tag shows a paragraph. – Heading tag: <h1>, <h2>, <h3> and so on – these define headings and subheadings in a document, ranging from the most important to the least important.

Back to the glossary