What is a heading tag?

What is a heading tag? A heading tag is an identifying element for headings in the website description language HTML. HTML files are basically structured hierarchically. The individual areas are marked with so-called tags. Heading tags identify headings. The rank of the corresponding heading is also determined with a number from one to six.

What is a day exactly?

According to biotionary, the term “tag” comes from the English language and can be translated appropriately with a label or marking. In the context of HTML, a tag marks a specially formatted area. Among other things, it is possible to use it to display characters in italics or bold. It should be noted, however, that HTML documents are subject to a certain syntax.

Opening and closing tags

Each day must be put in angle brackets according to the pattern. A label listed in this way describes the beginning of a correspondingly marked area. The end of the formatting is determined by the so-called closing tag. This one has the pattern

Hierarchical structure

The tags can be used interleaved. For example, a website is often divided into head and body areas. This means a header and the “body” of the document. Several additional tags are usually used within the body element. These can be subdivisions by paragraphs with the p-tag or tables enclosed with the table-tag. If you wanted to highlight an entire text in bold, this would be possible by having the web developer put each b-tag at the beginning and the end. The browserin this case would format all characters accordingly after the opening selection until it encounters a closing element. In fact, character formatting is not done this way on modern websites. For this purpose, web developers mostly use the formatting language CSS as a supplement.

The heading tag

The heading is of particular importance in documents. It gives an indication of the following content and often contains important keywords. In addition, authors often use subheadings to make an article clearer. HTML implements these requirements by subdividing the headings into categories. The main heading is given an h1 tag, and sub-headings from the categories h2 to h6 can be used below this. The web developer should of course only put one main heading of the category h1. The headings are displayed in smaller and smaller sizes with increasing numbers.

Headings also play an important role in search engine optimization (SEO). Google gives web developers advice on how to improve the findability of content in their search engine. A meaningful structure of texts and the use of meaningful headings are therefore helpful. Google expressly advises that excessive use of headings is viewed negatively as it could confuse readers. Google also rates very long texts in headers critically.

Differentiation between heading tags and header elements

The head element is not to be confused with the heading tag, despite the similar name. This is the head of the website in which important metadata can be stored. This includes the coding of the website and identifying keywords. The web developer can also include CSS files required for formatting. The header displayed in the browser tab can also be defined there. The head element is also important for search engine optimization.

Sources:
<url = https: //wiki.selfhtml.org/wiki/HTML/Elemente/html> HTML elements on wiki.selfhtml.org
<url = https: //support.wix.com/de/article/heading -tags-add% C3% BCgen> Use of heading tags on wix.com
<url = https: //developers.google.com/search/docs/beginner/seo-starter-guide? hl = de> Google start guide for search engine optimization

What is a heading tag