Skip to main content

HTML Headings

HTML Headings
Headings are defined with the <h1> to <h6> tags.

<h1> defines the most important heading. <h6> defines the least important heading.
Example
<h1>Web Design</h1>
<h2>HTML</h2>
<h3>CSS</h3>

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 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:

Example

<p>website horizontal line.</p>
<hr>
<p>website horizontal line.</p>
<hr>
<p>website horizontal line.</p>

HTML Tag Reference

You will learn more about HTML tags and attributes in the next chapters of this tutorial.

Tag                            Description
<html>                    Defines an HTML document
<body>                   Defines the document's body
<h1> to <h6>       Defines HTML headings
<hr>                         Defines a horizontal line
<!-->                         Defines a comment

Comments

Popular posts from this blog

Weird Device Cures Snoring

Weird Device Fixes Snoring and Sleep Apnea According to sleep experts, you need to be getting at least eight solid hours of sleep a night. Most people aren’t. The result is you feel sluggish in the morning. No wonder America is addicted to Red...

HTML Editors

Writing HTML Using Notepad or Text Editor HTML can be edited by using a professional HTML editor like:     Adobe Dreamweaver     Microsoft Expression Web     CoffeeCup HTML Editor However, for learning HTML we recommend a text editor like Notepad (PC) or TextEdit (Mac). We believe using a simple text editor is a good way to learn HTML. Follow the 4 steps below to create your first web page with Notepad. Step 1: Start Notepad To start Notepad go to: Start All Programs Accessories Notepad Step 2: Edit Your HTML with Notepad Type your HTML code into your Notepad: Notepad Step 3: Save Your HTML Select Save as.. in Notepad's file menu. When you save an HTML file, you can use either the .htm or the .html file extension. There is no difference, it is entirely up to you. Save the file in a folder that is easy to remember, like imzas.com. Step 4: Run the HTML in Your Browser Start your web browser and open your html file from the File, Open menu, or just browse the folder and double-c...

PUNJAB KESARI LALA LAJPAT RAI

Lala Lajpat Rai was an Indian writer and a great politician. He was one of the leading politicians of Punjab as well as all India. He contributed immensely in Indian politics to drive out British from Indian Territory. He was born on January 28, 1865 at Dhudike in Punjab. His father’s name was Radha Krishna and his mother was Gulabi Devi. Rai was there only child. He passed matriculation from local high school. He joined the Lahore Government College to study law in 1880. At this time he came in touch of Lala Hans Raj and pandit Guru Dutt. They became common friend of each other. Then they came in touch of “ARYA SAMAJ” which was founded by Swami Dayananda Saraswati. They started fund collection for ARYA SAMAJ to improve the Indian national program. He passed the Vakil's Hip examination in 1885 and started practicing for the vakil ship at Hisser. After that he started to join Indian politics directly. He was elected as the member of Hisser Municipality Corporation and later he becam...