What is in the HTML header?

Date:

2018-03-23 07:20:07

Views:

728

Rating:

1Like 0Dislike

Share:

Table of contents:

When working with the website first from the tags facing the programmer in HTML - <header>. When used without attributes, the differences in comparison with other tags are not seen, which begs the question of possible reasons for its use.

How and where to use?

HTML Tag <header> is an input for some section of the document. It is optional to use and is usually prescribed at the top of the page. With the English "tag" means "heading", but in Russian slang often uses the word "cap". Usually this tag is used in the top of the page, where the name and logo of the site and the subsidiary menu. However, often you can find its use in section titles.

html header

In the HTML <header> as a number of other tags that appeared only in the 5th version of markup language. Therefore, not all browsers correctly handle it. In the language specification it is assumed that the tag contained a section heading (h1-h6) or page, and is also required in the header of the site support elements, including banners, contact data, and other. Like most tags in HTML, <header> should have your "closing pair" - </header> indicating the end of the properties on this tag. Wanting to adjust the title of the website for your personal type of design for tag you can use a number of attributes that define his style.

Examples

The Practice of working with tag will allow us to fully understand the principles of the <header>. HTML examples of its use can be found on virtually every major website. On them it is usually used to refer to a header.

header of the html examples

One way to set the "cap" of the site using the tag <header> is the following example:

<header>

<h1>HTML5</h1>

</header>

In Addition to the header, this way you can also add any desired elements and tags except <footer>. He is responsible for the footer of the page, and may not be present in the header of the website. Upon detection of this element inside the header tag of the website will be loaded incorrectly.


Article in other languages:

AR: https://tostpost.com/ar/computers/4586-html.html

BE: https://tostpost.com/be/kamputary/8151-shto-takoe-html-header.html

DE: https://tostpost.com/de/computer/8153-was-ist-im-html-header.html

ES: https://tostpost.com/es/los-ordenadores/8158-lo-que-est-en-el-header-html.html

HI: https://tostpost.com/hi/computers/4589-html.html

JA: https://tostpost.com/ja/computers/4586-html.html

KK: https://tostpost.com/kk/komp-yuterler/8155-b-l-html-header.html

PL: https://tostpost.com/pl/komputery/8156-co-to-jest-html-header.html

PT: https://tostpost.com/pt/computadores/8151-o-que-html-header.html

TR: https://tostpost.com/tr/bilgisayarlar/8159-nedir-html-header.html

UK: https://tostpost.com/uk/komp-yuteri/8157-scho-take-html-header.html

ZH: https://tostpost.com/zh/computers/4972-html.html






Alin Trodden - author of the article, editor
"Hi, I'm Alin Trodden. I write texts, read books, and look for impressions. And I'm not bad at telling you about it. I am always happy to participate in interesting projects."

Comments (0)

This article has no comment, be the first!

Add comment

Related News

Dragon Knight: a review of the plot, the gameplay, the system of roles and forms of battle.

Dragon Knight: a review of the plot, the gameplay, the system of roles and forms of battle.

Among a huge number of interesting entertainment, many stop at this option, as the online game. Today it is one of the most popular types of fun, where the plot, the main character and even the progress of the mission can be chose...

League of Legends — Alloy: guide, build and features

League of Legends — Alloy: guide, build and features

Alloy guide tells you about the game strategies for this champion, will talk about the pros, cons, best builds and other aspects. Such information may be useful to beginners and experienced players to improve their skills. Theoret...

What is system unit of computer

What is system unit of computer

There are plenty of wrong terms that beginners are trying to call the system unit of the computer – processor, case, iron box, located under the working table. it's Hard to say where these erroneous names, but they are incre...

FOR Android: optimization. Overview of programs, instruction and recommendations

FOR Android: optimization. Overview of programs, instruction and recommendations

no Matter how many cores it contains, the mobile processor and how much RAM is there in the gadget, you should always be ready for that moment when his performance will cease to be optimal. Many users complain that smartphones and...

Express-panel

Express-panel "Yandex": installation, configuration, recommendations

"Yandex" is one of the most popular brands in Russia. The company offers users of CIS mass adapted to the local realities of the services, including navigation tools, search engine, music streaming service and many other services....

Mechanical keyboard: working principle and advantages

Mechanical keyboard: working principle and advantages

With each passing year, computer hardware manufacturers amaze us with new ingenious inventions. But more advanced users enough - they are waiting for the emergence of virtual reality and the invention of the cyber-gloves. Whatever...