Bright Java Tutorial

is brought to you by DoITBright LLC

HTML

Heading Tag

It is very common to use headings every time we create a document. Headings are very important because it alerts the readers to the upcoming topics and subtopics. One good example is, you are browsing through a document but would not like to read it all. The tendency is, you will look at the headings and will just read on the topics you are highly interested in. In HTML, we also use headings. Below is an example HTML code demonstrating the use of headings.

  <html>
    <head>
      <title>Heading Tag</title>
    </head>
    <body>
      <h1>H1 Marks The Main Topic</h1>
	  In general, the h1, h2, h3, h4, h5 and h6 heading 
	  tags are used to present the important topics that 
	  can be found inside your page. The h1 tag should be 
	  the main topic. It is recomended to use the h2 
	  heading tag to present a sub topic under the main 
	  topic. In this case, h2 should appear after the h1 
	  tag.
      <h2>H2 Is A Subtopic of H1.</h2>
	  For example, we need to have to write something 
	  related to the main topic but we need to emphasize 
	  the idea, we can place it under an h2 heading tag.
      <h3>H3 Is A Sub Topic of H2.</h3>
      There are times that a subtopic needs to have a 
	  subtopic, the h3 heading tag will be useful for 
	  this purpose.
	  <h3>Just Another H3.</h3>
	  this is just to demonstrate the idea of having 
	  multiple H3 tags under an H2.
	  <h2>Just Another H2</h2>
	  At this point, you might have grasped the idea on 
	  how the heading tags are used. Headings are also 
	  important when it comes to search engine 
	  optimization. If you are not yet familiar with the 
	  concept of SEO, to put it simply, this is how 
	  search  engines scan your page and determine what 
	  your page is about. This is a separate topic so 
	  let us leave it as it is. Below, you will be able to 
	  find other heading tags.
      <h4>This Is H4.</h4>
	  <h5>This Is H5.</h5>
	  <h6>This is H6.</h6>
    </body>
  </html>
                           



Back    Next