This page contains samples of various HTML text elements, so you can see how
your browser displays these elements. But in this case, the IS style sheet
information for the page, and that will change the way the text is shown.
This text sample is formatted using the style of the <BODY> of the page.
There are no element tags surrounding this text. The default most likely is a
flush left margin, a ragged right margin and fairly open line spacing, but the
style sheet for the BODY will change that. Note that two <BR> tags are
still required to create paragraphs. The first terminates the current line, the
second created the blank line between paragraphs.
This text sample is formatted using the <P> (paragraph) tags. Generally,
the text will be identical to the style of the BODY. The only usual difference
is the ability to create paragraphs without using <BR> tags (because text
between P tags formats as separated paragraphs). But, again, in this case, the
text style is altered by the style sheets.
Following these basic text elements are various phrase elements. The EM and
STRONG elements are typically used "inline". That is, in the middle of other
text. The BLOCKQUOTE element is a block element, and the ADDRESS, CITE, CODE,
SAMP, KBD, and VAR elements can be used as block elements.
The browser may not support all these elements (that is, may not display them in
any way different from surrounding text), but style sheets can define various
styles for any existing HTML tag.
Now we're back to body text...
Use the EM tags to emphasize a word or phrase. The default rendering is usually
The STRONG tags can also highlight a word or phrase, but the default rendering here
is usually a bold font.
Christopher James Sonnack
1098 Allen Avenue
West Saint Paul, Minnesota, 55118
Now is the time for all good men to party. If riding in an airplane is flying,
then riding in a boat is swimming. To experience the element, get out of the
vehicle. Why jump out of a perfectly good airplane? Because the DOOR was open!
One tequilla, two tequilla, three tequilla, floor!
One can also CITE something, say from a book or other reference.
Here is some text that might be the sample output of a program:
***This should be body text (it isn't!)...***
And here is a code sample that might be responsible for the above:
int main (int argc, char* argv)
printf ("Hello, World!\n");
The variables might listed: int argc; char* argv;
Examples of user keyboard input might be shown like this:
This should be body text (still isn't!)...
| © 2001 CJSonnack
|| Last Modified: 09/20/2014