Jump to content

Recommended Posts

Posted

HTML Headings

 

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

 

<h1> defines the most important heading. <h6> defines the least important heading.

<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3> 

Note: Browsers automatically add some empty space (a margin) before and after each heading.

 

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:

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

 

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.

 

Comments are written like this:

<!-- This is a comment --> 

 

Note: There is an exclamation point after the opening bracket, but not before the closing bracket.

HTML Tip - How to View HTML Source

 

 

To find out, right-click in the page and select "View Source" (IE) or "View Page Source" (Firefox), or similar for other browsers. This will open a window containing the HTML code of the page.

 

Credits Olympus,Internet,ME.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...