Thursday, October 25, 2012

Lesson 4: HTML headings

Use HTML headings for headings only. Don't use headings to make text BIG or bold.
Search engines use your headings to index the structure and content of your web pages.

Since users may skim your pages by its headings, it is important to use headings to show the document structure.

Example 1:-
  1. Open a text editor (Notepad is a common text editor for Windows users, Gedit for Linux users.)
  2. Type the following line in to the text editor.
  3. Save this file as "myweb3.html." (you can type any name but you must save that file name extention ".html")
    eg:- home.html, index.html, john.html, etc.
  4. Open that file (myweb3.html) in a web browser (Mozilla firefox, Internet Explorer, Opera, Safari, etc)
  5. You get like this out put
Headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least important heading. H1 headings should be used as main headings, followed by H2 headings, then the less
important H3 headings, and so on.

Example 2:-
  1. Open a text editor and type the following line in to the text editor.
  2. Save file.
  3. Open that file in a web browser.
  4. You get like this out put.



<< Previous Lesson                                            HTML Tutorial                                            Next Lesson >>

    No comments:

    Post a Comment