Lycos.com | Angelfire.com | WhoWhere.com | MailCity.com | Hotwired.com | HotBot.com | All Sites... |
![]() |
Tripod's HTML Tips
Send in my tip |
22.) Centering Text. To center text, use the HTML <CENTER> tag. For example: HTML: <CENTER>This text will be centered.</CENTER> 23.) Putting text in a block If you want to indent a block of text on both sides, try the <BLOCKQUOTE> tag. (While the indentation isn't the same in all browsers, Navigator and Internet Explorer both indent the text 40 pixels on each side.) Just enclose the text you want indented in a pair of <BLOCKQUOTE> tags. Inside the blockquote, you can use standard <P> or <BR> formatting tags to control line breaks as well as text- control tags such as <I> and <B>. Here's a sample blockquote segment Let us go then, you and I, |
24.) Changing Text Size The easiest way to change text size is to use the <H1>, <H2>, <H3>, <H4> tags in HTML. Remember that for every <H1>, <H2>, <H3>, <H4> tag, you must have a </H1>, </H2>, </H3>, </H4> tag at the end of the text you are changing the size of in order for the change to occur. 25.) Bold or Italic Text The easiest way to create bold text is put the text you want to make Bold between <B>text to be bold </B> HTML tags. To make your text italic, place it between <I>italic text</I> HTML tags. 26.) Emphasis To quote from the HTML 2.0 specification, the <EM> and </EM> tags provide "typographic emphasis, typically italics." The specific emphasis can vary from browser to browser. 27.) Strong Again from the specification, the <STRONG> and </STRONG> tags provide "strong typographic emphasis, typically bold." 28.) Citation < <CITE> and </CITE> specify a citation; this includes information like book titles, references, and so on. The text is usually displayed using italics. NOTE: Emphasis, Strong and Citation are much like using bold and italic. As you use HTML more, you figure out which tags work best for you. 29.) Comment Tags If you want to put text in an HTML document, but don't want that text to show up in a browser window, you need to use the comment tag. To do that, you would do the following: <!--Your Comment Here --> Your note would go where the text Your Comment Here appears. Yes, you do need an exclamation point after the opening bracket, but not before the closing bracket. That's the way the standard is written. Also, there is no end tag; that is, a tag like </!-- text --> does not exist. The comment tag is not a container. You can put comments pretty much anywhere, but you have to be aware of one important thing: you shouldn't put any HTML markup within a comment tag. Theoretically, you should be able to, but many browsers handle this less than gracefully (i.e., they either mess up or crash). |
|
Previous Page Next Page |
©
Tripod Inc.
Tripod ® is a registered servicemark of Tripod, Inc., a Lycos Company. All rights reserved.
|