| |
How to Change Text StylePhysical StylesBold, Italic, Underlined, Strikethrough, and TypewriterChanging the text style of part or all of your page involves a double-ended statement like those described in the first section. To make text bold simply surround
the word or words you wish to embolden with Superscript and SubscriptSuperscript and Subscript can be useful,
especially when you are dealing with such things as
chemical formulas and exponents. Granted most personal
home pages don't have much to do with subjects along
these lines, but there are many other uses as well. To
get superscript (text above the rest of the words,
but on the same line), surround the text with By adding these tags more than once, you can move the text farther up or down on the line. This is a lot easier to understand if you think of normal text as centered on a line. Remember that in many browsers, the greater the increment of subscript or suberscript, the smaller the font size of your text. Make certain the text is still readable in most common browsers. Logical StylesCitationThis tag has a visible effect
identical to italics in most browsers, but like all logical styles,
some browsers may render it differently. This is most often used when
typing an author's name and/or publication date in a bibliography. To get citation text, surround
the text with |
CodeThe most practical use for this type of text is
showing visible sections of code. This is used in quite a few places throughout this
site. The tags for "Code" Text are
ExampleExample is an older command that I still find quite useful. Fortunately, all the modern browsers still recognize this tag. The tags look like StrongThis is similar to emphasized text, save that the text is more strongly emphasized.
(Go figure....) This is usually rendered as bold text. To get this, surround the words of choice with SampleSample text often appears smaller than the rest of the text on a line, but it will
stay level with all other text unlike superscript and subscript. The code looks like this: Keyboard TextThis sort of text usually indicates text that is to be typed by the user; as in "Type YES in the box below to confirm your subscription."
The HTML tags look like this: VariablesThis indicates some sort of variable that should be inserted by the user, such as a file name or a specific series of numbers. Surround the text in question with
DeffinitionsThis statement is used to highlight the deffinition of a particular word or phrase, such as:
Emphasized TextThis sort of text usually appears as
italics, but some browsers may render it differently, so
if you want to be certain, use Pre-formated TextSometimes you want text to appear just
the way you typed it. That is to say, including all the
multiple spaces, tabs, line feeds, etc. just as you typed
them. To do this, surround the text in question with The text you type between these will look like typewriter text, but HTML won't "correct" the spacing. Note that preformated text will also be allowed to run off the edge of the browser screen if no line-breaks are inserted, and that spacing is not "corrected". "On Mouse Over & On Mouse Out"
This is a nifty little attribute that can be added to text (usually links) to make a message appear in the little box at the bottom of most browser windows (the one where "Page Loading" and similar messages appear). Run your mouse over this text to see what happens!! This HTML can be added to any text, including headers; just add the above HTML as an attribute of the appropriate tag. This attribute has the opposite effect of "On Mouse Over". It is typically used to clear the text box of anything created by said attribute. The HTML is virtually identical, save that "ONMOUSEOVER=" sould be replaced with "ONMOUSEOUT". You can make a different message appear in this fashion, or you can clear the box by leaving the area where text would be entered blank; make sure you still include all the punctuation, however. Run your mouse over this text to clear the text box. These attributes can also be placed on the same tag to make text disappear as soon as the cursor leaves the affected text. Reverse this to create text that is only visible so long as the cursor is NOT over the affected text. This attribute can also affect pictures, click here to see how to do this. Have fun and be creative! How to make things
Ever see blinking text on a page? Ever
see a fish do a hula in a dish? Sorry. Anyhow, as long as
you remember not to overdo it, blinking text on a page
can be useful to attract attention to important parts of
your page. To make something blink, simply surround it
with In general, most pages will only have one or two blinking items, and these are usually plain text. Blinking hypertext (like the one on the front page, sorry) is notoriously hard to catch and therefore to use, so most HTML programmers avoid this. It should also be noted that the blink command described above will not work when surrounding an image. Blinking pictures are animated files, and not created through crafty use of HTML. However, blinking graphics are, for the most part anyhow, very annoying, and are avoided just like flashing hypertext, the black plague, and other nasty things. Enjoy! |
|