English
German

HTML Headings

HTML Headings

A heading in HTML is just what you might expect, a title or subtitle. By placing text inside of <h1> (heading or Headline) tags, the text displays bold and the size of the text depends on the number of heading (1-6). Headings are numbered 1-6, with 1 being the largest heading and 6 being the smallest.

Example:

<body>
<h1>Heading h1</h1>
<h2>Heading h2</h2>
<h3>Heading h3</h3>
<h4>Heading h4</h4>
<h5>Heading h5</h5>
<h6>Heading h6</h6>
</body>

Output

Heading h1

Heading h2

Heading h3

Heading h4

Heading h5
Heading h6

Notice that each heading has a line break before and after each heading display. This is a built in attribute so to speak associated with the heading tag. Each time you place a heading tag, your web browser automatically places a line break in front of your beginning tag and after your ending tag exactly the same as with <p> tags.


Headings Are Important

Use HTML headings for headings only. Donot use headings to make text BIG or bold.

Search engines use your headings to index the structure and content of your web pages.

  It is important to use headings to show the document structure.

H1 headings should be used as main headings, followed by H2 headings, then the less important H3 headings, and so on.


HTML Lines

The <hr /> tag creates a horizontal line in an HTML page.

The hr element can be used to separate content:. hr is using for break line

Example:

<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>
<hr />
<p>This is a paragraph</p>

Output

Paragraph


Paragraph


HTML Comments

Comments can be inserted into the HTML code to make it more readable and understandable. Comments are ignored by the browser and are not displayed. Example is blow.

HTML comment:

<!-- This is a HTML comment -->


Essay Walkthrough

Let's tie together headings and paragraphs to form an essay. Copy (Highlight, then Ctrl C) or code the following in the body of your page or a new page. Or make your own essay paragraphs.

Example:

<h1 align="center">Example</h1>
<p>Hi Script</p>
<p>For instance, let's say you had a
HUGE school or work project to complete.  or
You have a lots of work load in office</p>

Output

Example

Hi Script

For instance, let's say you had a HUGE school or work project to complete. or You have a lots of work load in office


HTML Tutorial,HTML Headings, HTML Headings example, learn HTML Headings,explain example HTML Headings online free training HTML Tutorial, HTML Tutorial example, learn HTML Headings, online tutorial, download tutorial, HTML Tutorial books, HTML Tutorial videos, live videos HTML Tutorial, learn HTML Tutorial, HTML Tutorial topic HTML Headings, live training HTML Tutorial, download free tutorial