Sunday, March 9, 2008

Tags

Headings:
Headings are defined with the h1 to h6 tags. h1 defines the largest heading & h6 defines the smallest heading.
HTML automatically adds an extra blank line before and after a heading.

Paragraphs:
Paragraphs are defined with the p tag.

HTML automatically adds an extra blank line before and after a paragraph.

Remember don't forget closing tag like:

Basic HTML Tags

The most important tags in HTML are tags that define headings, paragraphs and line breaks.

The best way to learn HTML is to work with examples. We have created a very nice HTML editor for you. With this editor, you can edit the HTML source code if you like, and click on a test button to view the result.

Try it your self : -

Output : The content of the body element is displayed in your browser.

Example-2:

Output:
This is a paragraph.
This is a paragraph.
This is a paragraph.
Paragraph elements are defined by the p tag.