Structure Tags

] ] ] ] ] ] ] ] ]

Heading = <H1>…</H1>, <H2>…</H2>, <H3>…</H3>, <H4>…</H4>,

<H5>…</H5>, <H6>…</H6>

  • Headings provide an outline of the text that forms the body of the document.
  • There are 6 levels of headings: H1 (the most important), H2, H3, H4, H5 and H6 (the least important).
  • Browsers control the appearance of each heading level.

To indicate the alignment of a heading, the command used is the same for all headings. Here is an example of H1: <H1 ALIGN=Options>. The options can be either LEFT, CENTER or RIGHT.

 

Paragraph = <P>…</P>

  • HTML performs automatic word wrap in documents, and ignores carriage returns.
  • The <P> element can help to separate the paragraphs by adding a double-spaced line between them.

To indicate the alignment of a paragraph, the command used is <P ALIGN=Options>. Also, the options can be either LEFT, CENTER or RIGHT.

 

Line Break = <BR>

  • This element is used to stop text and restart again on the next line.
  • Unlike the <P> element, an extra blank line is not inserted.

 

Blockquote = <BLOCKQUOTE>…</BLOCKQUOTE>

  • Showing the text as quoted text can be done by using this element.
  • The text within these tags will be indented on both the left and right.

 

Horizontal Rule = <HR>

  • This is used as another way to add divisions to your document.
  • Horizontal lines provide a strong visual break between sections.

By default, the horizontal rule is drawn as wide as the page. However, to define the length of the rule is possible by adding a number in pixels or by adding the percent sign (%) after a number, which means that the horizontal rule will be a percent of width of the document. Therefore, the command used can be either <HR WIDTH=number in pixels> or <HR WIDTH=number%>.

In addition, you can specify the thickness of the horizontal line in pixels with this command: <HR SIZE=number in pixels>.

To indicate the position of the horizontal rule, <HR ALIGN=options> is used. The options can be LEFT, CENTER or RIGHT.

When you want a solid horizontal line, use <HR NOSHADE>.

Previous | HTML Page | Next