You are here:  NetStrider » Tutorials » HTMLRef » Commands » Hn «

HTML Reference Guide

Author: Randy D. Ralph.   In place March 1, 1999.   Copyright © 1999 NetStrider.   Presented as a public service.

BACK <HnCommand next

Command Syntax:

<Hn command parameters> some header text </Hn>

The command renders enclosed text as a document heading. The heading can only be established one of six sizes where n is in the range from 1 to 6.

A heading is preceded and followed automatically by a blank line to separate it from normal document text and is also bolded.  Bolding text inside a defined heading is therefore, pointless.

Command Parameters:

align="left | right | center"

Where:

  • left -
    aligns the heading text to the left margin.

  • right -
    aligns the heading text to the right margin.

  • center -
    aligns the heading text centered on the page margins.
Examples:

<H1>Heading 1</H1>

<H2>Heading 2</H2>

<H3>Heading 3</H3>

<H4>Heading 4</H4>

<H5 align="center">Heading 5</H5>
<----------------------->
<H6 align="right">Header 6</H6>
--------------------------->
NOTE:  The first heading of an HTML Document must match the <TITLE> defined in the document <HEAD> or the document will be difficult to cite properly because it will appear to have multiple titles because:
  • The first header, defined by one of the <Hn> commands will constitute a visible title at the top of the web page.

  • The <TITLE> defined in the document <HEAD> segment will be visible in the title bar of the browser application.
If these do not agree then the intended title of the document remains in doubt.
Return to Section E:H


Return to the List of Commands
Author: Randy D. Ralph.  In place March 1, 1999.  Copyright © 1999 NetStrider.  World Rights reserved.




Hosted by uCoz