|
|
|
The <body> tag is the block formatting
element that surrounds all other homepage content. Don't forget to end
your page with a </body> tag followed by a
</html> tag.
Text displayed on a web page can be categorized into Block-Level and Inline tags.
Block-Level tags may contain Inline tags and other Block-Level elements. Block-Level tags format groupings of text (words, sentences, paragraphs, etc.), usually by inserting something before or after the text, or by positioning the text.
Inline tags format sections of text, words, or even individual letters at a time and may contain only text and other inline tags. Block-Level tags are formatted differently than Inline tags and begin on new lines, while Inline tags do not.
Style sheets provide the means to specify the
rendering of arbitrary text sections, including whether an element is rendered
as block or inline. This is preferred instead of tags and attributes like
<font ... >, align,
color, etc.
Used to mark up divisions in a document, <div> ...
</div>, can enclose other block elements. Use this tag in
conjunction with style sheets to format sections of the page.
Used to mark up inline elements in a document. <span>
... </span>. Use this tag in conjunction with style sheets
to format sections of inline text.
The heading tag displays text in larger or bolder fonts than normal text. It is used like the levels in an outline. There are six levels of headings, numbered 1 to 6 with 1 being the largest and 6 being the smallest. Search engines may give words appearing in headers more importance in their index.
<h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><h4>Heading 4</h4><h5>Heading 5</h5><h6>Heading 6</h6>The <Address> tag is used to enclose
contact information, addresses and the like. It is often rendered with a
slightly indented left margin and italics. Use the
<br> (line break) tag for explicit line breaks after each
line.
<address>Peter Conrad Cumminsky<br>
Middletown, CA 95461</address>
Previous Chapter | Home |
Up | Next Chapter