Richlong Educational Resources

Richlong's Educational Resources-
The Best Source of Information
Contact me and tell me
all your suggestions
New to the Internet?
Get started here!
Learn the basics of HTML
to start building your own webpage
The best education and
edutainment resource
for kids
Everything - from education
to research, we have it
Get info on universities, colleges,
courses and career advice here!
Make the right choice.
The best freeware and shareware
I've tried and recommend for you
Great games you should try
to relieve your stress or
rather to strain your eyes
Any comments, suggestions,
or ideas you wish to share,
put them here
Sign my Guestbook and
put in any comments you like
View what you or
others have written
This was my original guestbook
and it only has three entries.
Sorry, you can't write here
You can read, view, lick or
drool at your own will,
but don't copy and paste
Hey! No copying and
pasting, alright?
learnhtml.gif (5710 bytes)line.gif (11170 bytes)


Text Formatting

| The Basics | Text | Fonts | Lists |

The Basics

  1. Open Notepad and type the following:
  2. <html>
    </html>

    The text between the symbols "< >" are known as HTML tags and must be in pairs. HTML tags can't be seen in an Internet Browser. To view the HTML tags, click on View Source. The tags <html> and </html> are used to tell the browser that the document is in HTML format.

  3. In between the tags <html> and </html>, insert this:
  4. <head>
    <title>
    </title>
    </head>
    <body>
    </body>

    The <head> tags are for the headers. The <title> tags are where the title will appear on the title bar of the browser. The <body> tags is where the body of your text will appear. (See Diagram 1)

  5. Between the tags <title></title>, type this:
  6. My Very First Website

    Between the tags <body></body>, insert this:

    <p>The text visible in the browser must appear betweeen this two tags</p>
    The tags <p></p> are to show that the text is in a paragraph.
  7. Click File on the menu bar and click Save.
  8. Under the Save in drop down menu, scroll and select Desktop. In the File name space, name the file "Firstweb.htm" (without the quotation marks). Click Save. All files saved must end with ".htm" or ".html" in order to be "recognized" by the browser.
  9. You'll notice an icon on your desktop with a picture of a globe, labeled "Firstweb". Double click it. (See Diagram 2)

dia1.gif (31366 bytes)Diagram1

dia2.gif (33089 bytes)Diagram2

Text

  1. Open Notepad and click File ,then click Open. Select Desktop in the Look in drop down menu. Under Files of type, select All Files(*.*). Open Firstweb by selecting it and clicking Open.
  2. Type the following between the <body></body> tags:
  3. <h1>Big</h1>
    <h6>Small</h6>

    The text between the <h1> tags will appear big and the text between the <h6> tags will appear small. These tags are the header tags and they range from <h1> to <h6> (<h1> being the biggest and <h6> being the smallest). You can try to experiment with other headers like <h3>, <h5> etc. Remember to save it. To view the changes, just click the Refresh or the Reload button.

  4. In the line, <p>The text visible in the browser must appear betweeen this two tags</p> insert the these tags between the words "text", "in", "browser" and "tags":
  5. <i>text</i>
    <u>in</u>
    <b>browser</b>
    <i><b>tags</b></i>
    The tags <i>, <u> and <b> are for italic text, underlined text, and bold text respectively. You can use a combination of tags like in the example above. Even if you typed <b><i>tags</i></b>, it will bring the same effect as the above. Remember to save before viewing in the browser and don't forget to click Refresh or Reload. (See Diagram 3 and Diagram 4)
  6. A variety of tags to try are:
    • <tt></tt> For typewriter like text
    • <big></big> For big text (Can be repeated for bigger effect, eg. <big><big><big>Test</big></big></big>
    • <strong></strong> For bold text, to show strong impact (Can also be repeated for bolder effect like the tags <big>)
    • <dfn></dfn> For italic text, to show definition
    • <em></em> For italic text
    • <cite></cite> For italic text, to show the title of a book etc.
    • <code></code> Used for computer codes, presented in a certain size
    • <kbd></kbd> Used to key in alphabates with the keyboard
    • <var></var> For italic text
    • <dl></dl> Definition Lists that contains Definition Term and Definition Definition
    • <dt></dt> Definition Term
    • <dd></dd> Definition Definition
    • <dl compact></dl compact> Use only if the Definition Term are too short

dia3.gif (43582 bytes)Diagram3

dia4.gif (46687 bytes)Diagram4

Fonts

  1. Open Firstweb.htm and add this line after the tag <body>:
  2. <font face="Algerian" size="14">
    Save it, then view it in your browser. You'll notice that the font has changed to Algerian and the font size is 14. To change to another font style or font size, just replace the word Algerian or 14 in the example above to your desired font. Don't forget the quotation marks. This font style and size will apply to the whole webpage. You don't need to add the </font> tag unless you wish to apply the desired font style and size to a particular part of the webpage, eg. <font face="Algerian" size="14">Hello</font>to all.The word "Hello" will appear in Algerian, size 14, while "to all" will appear in the default font and size. How to change the font colour will be discussed in Colours & Images.(See Diagram 5 and Diagram6)

dia5.gif (36256 bytes)Diagram5

dia6.gif (46728 bytes)Diagram6

Lists

  1. Make sure Firstweb.htm is open. Remove this line:<font face="Algerian" size="14"> (This line will make the font very big and we don't need big fonts in this exercise).
  2. To make an unordered list, insert this line between the <body></body> tags:
  3. <ul><li>Water</li>
    <li>Air</li>
    <li>Earth</li></ul>
    The tags <ul> are to inform the browser that it is an unordered list and the <li> tags are the list.
  4. To make an ordered list, type the following between the <body></body> tags:
  5. <ol><li>London</li>
    <li>Moscow</li>
    <li>Paris</li></ol>
    The tags <ol> are to inform the browser that it is an ordered list. This concludes Text Formatting.(See Diagram 7 and Diagram8).

dia7.gif (52198 bytes)Diagram7

dia8.gif (68682 bytes)Diagram8

Refcities.com FREE Web-hosting - WE offer 20megs FREE space + Guestbook, WWWboard,formailer.. ALL FREE..........

 back.gif (207 bytes)          next.gif (207 bytes)

Back to top

©Copyright of Richard Long