Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > HTML Forum & Tutorial

HTML Headings

Views: 1230  
Thread Tools Rate Thread Display Modes
Old 05-03-2009, 11:39 AM
welcomewiki welcomewiki is offline
Join Date: Dec 2008
Location: India
Posts: 80,823
Default HTML Headings

Headings are important in HTML documents.
HTML Headings

Headings are defined with the



defines the largest heading.

defines the smallest heading.

This is a heading

This is a heading

This is a heading

Note: Browsers automatically adds an empty line before and after headings.
Headings Are Important

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.
H1 headings should be used as main headings, followed by H2 headings, then less important H3 headings, and so on.
HTML Rules (Lines)

tag is used to create an horizontal rule (line).

This is a paragraph

This is a paragraph

This is a paragraph

HTML Comments

Comments can be inserted in the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed.
Comments are written like this:

Note: There is an exclamation point after the opening bracket, but not before the closing bracket.
HTML Tip - How to View HTML Source

Have you ever seen a Web page and wondered "Hey! How did they do that?"
To find out, click the VIEW option in your browser's toolbar and select SOURCE or PAGE SOURCE. This will open a window that shows you the HTML code of the page.
Examples From This Page

This example demonstrates the tags that display headings in an HTML document.
Hidden comments
This example demonstrates how to insert a hidden comment in the HTML source code.
Horizontal rule
This example demonstrates how to insert a horizontal rule.
HTML Tag Reference

W3Schools' tag reference contains additional information about these tags and their attributes.
You will learn more about HTML tags and attributes in the next chapters of this tutorial.
Tag Description Defines an HTML document Defines the document's body


Defines header 1 to header 6
Defines a horizontal rule Defines a comment

Reply With Quote

New topics in HTML Forum & Tutorial

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2020, vBulletin Solutions, Inc.