What are heading tags

Heading day


The heading tag, also head tag, is used in HTML to define the headings of a page. The headings are defined using , where n is a number between 1 and 6 and defines which order a heading takes and is sometimes formatted like a heading. Every opened

tag must of course be closed again with . In between, the content of the heading is noted.

<h1>Das ist eine Überschrift </h1> <h2>Das ist eine Überschrift zweiter Ordnung</h2> <h3>Das ist eine Überschrift dritter Ordnung</h3>

General information [edit]

The heading tag has a particularly important position within an HTML framework. Basically, an HTML file is a connection of nodes, whereby the heading tag is the starting point from which further nodes, e.g. content or further headings, branch off. Each HTML file should therefore only have exactly one H1 heading - a rule that should be heeded, even if it is generally allowed to use several H1 tags. It's a matter of good style. Headings of lower levels can then be used as often as you like, but should be selected in such a way that a comprehensible hierarchy results. For example, a main heading with two subsections would look like this:

<h1>Das ist eine Überschrift</h1> <h2>Das ist eine Überschrift zweiter Ordnung</h2> <h2>Das ist eine Überschrift zweiter Ordnung</h2>

Why heading tags? [Edit]

Heading tags give structure to an HTML file and indicate what kind of data a browser should display. How this data is to be displayed has not yet been determined, even if this is usually predefined for headings. The formatting of the headings should be stored in the CSS files in order to separate the formatting and content. However, the use of heading tags is mandatory if text content is to be displayed. Every HTML file should only have one start node if it is to be valid. The validator of the W3C can be used to check the validity of an HTML document.[1] In addition, a well-structured HTML file has certain advantages for users and search engines.

1.) Headings can be interpreted by browsers that may not recognize or display custom style sheets

2.) Screen readers and magnifying glasses use header headings (accessibility and display on mobile devices)

3.) A clear structure is given: The user receives information about the content and can decide which paragraphs are of interest to him

4.) Search engines receive valid source code and other signals in the form of relevant keywords in the headings that summarize the content

5.) Easier global changes to all headings possible: A small change in the CSS file and all headings receive formatting instructions

Importance for SEO

The heading tag is of central importance for search engines. Search engines use heading tags to identify keywords that stand out from the rest of the content through their formatting. As a rule, a heading summarizes the following section of text. It is therefore very advisable to include important keywords in the headline. The higher the position of the heading on a page, the more important it is. However, it doesn't make sense to fill a headline with too many keywords. The keywords should be directly related to the content and fit into a legible sentence structure. Mere keyword stuffing in the heading tags helps neither search engines nor users.

The importance of the heading tag can be expressed by n (H1 very important, H6 less important). There are some theories that special emphasis should be placed on the H2 headings in OnPage optimization and that the important keywords should also be placed there, because the actual text content of a website is structured with these headings. At the same time, it is important that signals are sent to search engines through headings. So a middle ground is a good option to take into account user needs and also to meet the requirements of search engine optimization.[2]

References Edit]

  1. ^ Validator. validator.w3.org. Retrieved March 29, 2014.
  2. ↑ How to Use Heading Tags for SEO. blog.woorank.com. Retrieved March 29, 2014.

Web links [edit]