Free Web space and hosting from freehomepage.com
Search the Web


HOME
BASIC TUTORIAL
What is Html?
Sample Web Page
Basic Tags
Character Entities
Html Links
Frames
Tables
Lists
Forms
Images
Backgrounds
APPENDIX
Html Tag List

Basic Tags

There are a few basic tags that are used frequently by html designers. They include headings, paragraphs, and line breaks.

HEADINGS

Headings are used to create large text for titles and headings (of course). There are six sizes of headings ranging from 1 to 6. 1 is the largest, and they get progressively smaller as the numbers increase, six being the smallest. The tags for headings are <h1>, <h2>, <h3>, etc., down to <h6>. A blank line is automatically added before and after a heading.
<h1>Largest Heading</h1>
<h2>2nd Largest Heading</h2>
<h3>3rd Largest Heading</h3>
<h4>3rd Smallest Heading</h4>
<h5>2nd Smallest Heading</h5>
<h6>Smallest Heading</h6>

Click
here to see this example.

PARAGRAPHS

The <p> tag is used to create a paragraph. Paragraphs automatically have an extra line before and after them.
<p>This is a paragraph</p>
<p>This is another paragraph</p>

Click
here to see this example.

LINE BREAKS

<br> is the tag used to create a line break. It is useful for when you want to end a line and make a new one, with out starting a new paragraph. It has no closing tag (</ >).
<p>This <br> paragraph has <br> many breaks <br> in it.</p>

Click
here to see this example.

COMMENTS

The comment tag is used to insert a comment into the html source code. It is ignored by the browser. You can use the tag to make a note in your code for when you come back at a later date.
<!-- This is a comment -->

Note that you only need the exclamation mark after the start of the tag, and not before the end.
To learn how to create < and >, click on “next”.

Much of what I learned to create this tutorial I found on www.w3schools.com.
Back to Top
Lewisville Middle School-2003