Skip to main content

Chapter 6 : HTML 5 – Header Element

 


HTML 5 – Header Element

 

The <header> element is the block level element which I have discussed in my previous article for what is block level elements.

 

The <header> HTML 5 element represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.

 

These are the Following Uses of Header Element

  1. The header tag contains information related to the title and heading of the related content.
  2.  Main use of <header> in HTML 5 for creating header of websites
  3. Design Logo, Navigations and Headings thorough header.
  4. We can use several <header> elements in one document.
  5. The <header> element is intended to usually contain the section’s heading h1 to h6
  6. The <header> element can also be used to wrap a section’s table of contents, a search form, or any relevant logos.
  7. The <header> tag is a HTML5’s tag and it requires a starting tag as well as an end tag.

 

Syntax

<header>  -----   </header>

 

Example 1.1

            <!DOCTYPE html>

<html>

<head>

            <meta charset="utf-8">

            <title>Example Header</title>

</head>

<body>

             <header>

                        <h1>LOGO NAME</h1>

                        <a href="">Home</a>

                        <a href="">About</a>

                        <a href="">Services</a>

                        <a href="">Contact</a>

            </header>

 </body>

</html>

 

Result


Example 1.2

<article>

  <header>

    <h1>Heading H1 </h1>

    <h2>Heading H2 </h2>

    <h3>Heading H3 </h3>

    <h4>Heading H4 </h4>

    <h5>Heading H5 </h5>

    <h6>Heading H6 </h6>

    <p>Posted by Coders Zilla</p>

    <p>Some additional information here</p>

  </header>

  <p>Lorem Ipsum dolor set amet....</p>

</article>

 

Result




 

Comments

Popular posts from this blog

How to get a job after 12th without any investment.

 https://coderszilla.com/how-to-get-a-job-after-12th-without-any-investment/ Hello friends, Today I am going to tell you about some such skills in which you can earn from   10 thousand   to   1 lakh   per month. And These skills are available on YouTube and Google. Now a days all are have a smart phone you can start watching videos form your phone and after that purchase a laptop for work practice. So, make your career in IT Industry without any Highest Degree Like that   B.C.A. ,   M.C.A.   or   B.Tech.   Actually, my moto is to write this article who belongs to poor or middle family and he can’t pay highest money to done   B.Tech.   or any other highest courses. So, they can learn these skills and build your career in IT Industry. Digital Marketing  (SEO, SMO etc.) Graphic Designing ( UX Designer) Video Editing Graphics And Animation Front-end Developer Backend Developer Full-Stack Developer Blogger or Content Creator...

Chapter 3 : HTML Editors

What are HTML Editors? Editors is where we write our code. Whether it is HTML, PHP or any other language like that (JavaScript, jQuery, Ajax XML, Java etc.) These are the following editors. 1.      Note Pad Notepad is a simple text editor for Microsoft Windows and a basic text-editing program which enables computer users to create documents. And all Computers have notepad. 2.      Note Pad ++ Notepad++ is a text and source code editor for use with Microsoft Windows. It supports tabbed editing, which allows working with multiple open files in a single window. It’s advance version of Notepad. 3.      Sublime Text Editor Sublime Text  is a sophisticated text  editor  for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance. It natively supports many programming languages and markup languages, and functions can be added by users w...

Chapter 1 : Introduction

1.1    What is HTML ? HTML  stands for  Hyper Text Markup Language , which is the most widely used language on Web to develop web pages.  HTML  was created by Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTML specification which was published in 1995. HTML 4.01 was a major version of HTML and it was published in late 1999. Though HTML 4.01 version is widely used but currently we are having HTML-5 version which is an extension to HTML 4.01, and this version was published in 2012. We represent as “  < tagname >  Content goes here...  < /tagname >” These are the some key features of html :- o    HTML  elements  are the building blocks of HTML pages o    HTML elements are represented by  <> tags o    HTML is Not Case Sensitive HTML5 Browser Support ·        HTML5 is supported in all modern browsers. ·  ...