|
Free
computer Tutorials
|
![]() |
HOME
|
Stay at Home and Learn | |||||
|
Web Design Tutorials |
||||||
|
Extra HTML Text Formatting Tags
Here are some other Text Formatting tags you can use in your code. Try them out and see how they work. They are in alphabetical order. BASEFONTUsed for setting the size of the text on the entire page. The sizes range from 1 to 7, with 7 being the biggest. The default is size 3. Put it on the line after the first BODY tag: <BODY> <BASEFONT size = 4> </BODY>
BLOCKQUOTEThe Blockquote tag is used for setting off a block of text from the main body of text. <BLOCKQUOTE> To be or not to be, that is the question. Whether 'tis nobler in the mind to suffer the slings </BLOCKQUOTE> The effect will be this:
BIGMakes text bigger, usually by one size above the default, or the BASEFONT, if specified: <BIG>Some Text</BIG> DEFINITION LISTSThe <DL> </DL> tags are used to set up a definition list. The definition list is useful for things like glossaries, and even CV's. Two other tags go with the <DL> tag: <DT> and <DD>. The DT tag is the Definition Text, and the DD tag is the Definition Description. You use them like this: <H1>A CV</H1> <DL> <DT><B>2345 - 2346</B> <DD>Accidentally Blew up the Starship Enterprise <DT><B>2346 - 2347</B> <DD>In Prison for accidentally Blowing up the Starship Enterprise </DL> The effect in a browser would be this (without the grey background, obviously): A CV
EMPHASISThe <EM> </EM> are used for emphasis. The result is text with italics: <EM>Some Text</EM> PREThe <PRE> </PRE> tags are used to retain formatting. For example, when you've copied lots of text from a word processor, and don't want to insert lots of paragraph tags then you can use PRE (short for preserve formatting)). <PRE> Some text Some text Some text Some text Some text Some textSome text Some text Some text Some text Some text Some text </PRE> SMALLMakes text smaller, usually by one size below the default, or the BASEFONT, if specified: <SMALL>Some Text</SMALL> STRIKEUsed for striking through text: <STRIKE>Some Text</STRIKE>
STRONGAn alternative to the Bold tag: <STRONG>Some Text</STRONG> UNDERLINEIf you want underline, used the <U> </U> tgas: <U>Some Text</U> Some Text
And now that you have a good idea of how to format text on your page, you can move on to the next section - Hyperlinks. <-- Back One Page Move on to the Next Section --> <--Back to the Web Design Contents Page View all our Home Study Computer Courses
|