Skip to main content

Types Of Headings In HTML

HTML Hedings

Headings in HTML are used to display Titles, Sub-Titles of Sub-Sub-Titles for your web page text. There are six types of headings in HTML. H1 is the largest heading and H6 is the smallest heading. <H1> is opening tag whereas </H1> is the closing tag for the largest heading. The text between <h1> and </h1> will be displayed as the main Title in your web page. Following are the six tags used for six types of headings in HTML.

  1. <H1> ... </H1>
  2. <H2> ... </H2>
  3. <H3> ... </H3>
  4. <H4> ... </H4>
  5. <H5> ... </H5>
  6. <H6> ... </H6>




The H1 heading is used for main titles. Actually H1 heading will show the text in largest font size. H2 headings is used for Sub-Titles. H2 displays text in smaller font size than H1, H3 displays text of font size smaller than H1 and H2, and so on. H1 is for largest heading in a text page and H6 is for smallest heading.  

Importance Of Headings in SEO

Headings are important not only, for specifying Titles and Sub titles in a web page, but they play an important role to enhance Search Engine Optimization of your web page in major Search engines like Google and Yahoo. Search engines use your headings, especially H1 and H2 headings, to index the structure and content of your web pages. Therefore, proper use of headings may improve your web page's search engine optimization.

Example HTML Code and Output

HTML Code for Six HeadingsOutput in Web browser
<h1>First Heading</h1>
<h2>Second Heading</h2>
<h3>Third Heading</h3>
<h4>Fourth Heading</h4>
<h5>Fifth Heading</h5>
<h6>Sixth Heading</h6>


First Heading

Second Heading

Third Heading

Fourth Heading

Fifth Heading
Sixth Heading


Comments

Popular posts from this blog

Definition and History of ECommerce

What do you mean by E-Commerce? Electronic Commerce (e-Commerce) is a general concept covering any form of business transaction or information exchange executed using information and communication technologies (ICTs). e-Commerce takes place between companies, between companies and their customers, or between companies and public administrations. Electronic Commerce includes electronic trading of goods, services and electronic material. BRIEF HISTORY OF E-COMMERCE + E-commerce started in early 1970’s with invention of electronic fund transfer(EFT). + Only used by large organizations, financial institutions and a few small business at that time. + After invention of EDI (Electronic Data Interchange) from financial institutions to manufacturers retailers, services and so on. + Many other e-commerce applications started from stock trading to travel reservation system. + With commercialization of internet in early 1990’s. The term electronic commerce was used. Interne...

Important objective type questions 1-50

FTP stand for     file transfer protocol. Lady ADA is the mother of computer.    VINT CERF     is the father of Internet. Nibble consists of   4   bits.   Google     and   Yahoo   are the two search engines. TCP/IP stands for Transmission control protocol/Internet protocol. One sector on Hard Disk holds   512    bytes.   Dos, window and UNIX are three operating systems. Demodulation converts Analog signal into Digital signal. ARPANET stands for advanced research project agency network. URL stands for uniform resource locator . Charles Babbage is the father of computer. Lady ADA is the first computer programmer. Nibble contains 04 numbers of bits. Name Two Mail service mail Yahoo.com. VOIP stands for Voice over internet protocol. One sector holds 512 numbers of bytes. N...

Who Invented First PC Virus? Pakistanis Invented First PC Virus in 1986

Who Invented The First PC VIRUS-Video Proof by F-Secure two Pakistani bothers, Amjad Farooq Alvi and Basit Farooq Alvi, invented this very first PC Virus Who invented the first PC Virus? First ever PC computer virus was named as Brain. In 1986,   two Pakistani bothers, Amjad Farooq Alvi and Basit Farooq Alvi, invented this very first PC Virus. Amjad farooq Alvi and Basit farooq Alvi  are currently running an ISP under the name of Brain Telecommunication Limited, in Lahore, Pakistan. First PC virus invented by Pakistani brothers amjad and basit Mikko Hypponen travelled to Pakistan to find the writers of the first PC virus. The first virus to infect PC computers was discovered in 1986. Intriguingly, the virus contained the contact details of its authors in Pakistan. 25 years later, in February 2011, Mikko Hypponen, Chief Research Officer at F-Secure, travelled to the city of Lahore in Pakistan to find the authors . The authors were identified as brothers Amjad F...