SlideShare a Scribd company logo
1 of 46
Item No. 10923




MICROBOLD
CORPORATION
                     HTML JOURNAL 2012




                 Student Study Pack Item | Microbold Corporation
  1    Error! No text of specified style in document. | Microbold Corporation
Microbold Corporation – Solutions, now loading…



Microbold Corporation HTML Journal 2012




People often think it is extremely difficult to make a website. That is not the case! Everyone can learn
how to make a website. And if you read on, you will have made one in a short while.

Others believe - just as mistakenly - that expensive and advanced software is needed to make websites.
It is true that there are lots of different programs that claim they can create a website for you. Some
come closer than others. But if you want it done right, you must do it yourself. Fortunately, it is simple
and free (for the most part) and you already have all the software you need.

This Microbold journal aims at giving you assistance with our HTML Workability training (which would be
referred hitherto as ‘tutorial’ on our website and will give you an easy, yet thorough and correct
introduction to how to make websites plus a qualification to take the Microbold HTML Workability
Examination. The tutorial starts from scratch and requires absolutely no prior knowledge of
programming.

This journal cannot show you everything. So some engagement and a will to experiment are required.
But don't worry - learning how to make websites is a lot of fun and gives a tremendous amount of
satisfaction when you get it right.

How you choose to use the journal is up to you. But we suggest you read only two or three lessons a day
and take time to experiment with the new things you learn in each lesson.

Okay, enough talk. Let's get started!




Nugget 1: Let's get started
In this first lesson, you will get a brief presentation of the tools you need to make a website.

What is needed?




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Most likely you already have everything you need. You have a "browser". A browser is the
program that makes it possible to browse and open websites. You use a browser to access
WebPages like www.microbold.tk, www.facebook.com, or www.yahoomail.com amongst others. It is
not important which browser you use. The most common is Microsoft Internet Explorer. But
there are others such as Opera and Mozilla Firefox and they can all be used.

You might have heard about, or even used, programs such as Microsoft FrontPage, Macromedia
Dreamweaver or even Microsoft Word, which can - or claim that they can - create websites for
you. Forget these programs for now! They are not of any help to you when learning how to
code your own website.

Instead, you need a simple text editor. If you are using Windows you can use Notepad, which is
usually found in the start menu under Programs in Accessories:




If you are not using Windows, you can use a similar simple text editor. For example, Pico (Linux)
or TextEdit (Mac).

Notepad is a very basic text editing program which is excellent for coding because it does not
interfere with what you are typing. It gives you complete control. The problem with many of


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


the programs that claim they can create websites is that they have a lot of standard functions,
which you can choose from. The downside is that, everything needs to fit into these standard
functions. Thus, this type of programs often cannot create a website exactly as you want it. Or -
even more annoyingly - they make changes to your hand-written code. With Notepad or other
simple text editors, you only have yourself to thank for your successes and errors.

A browser and Notepad (or similar simple text editors) are all you need to go through this
tutorial and make your own websites.

Do I need to be online?

You do not need to be connected to the Internet - neither while reading the training course
material, nor while making your websites.

If you want to avoid being online while reading this tutorial, you can either print it out or simply
disconnect from the Internet while reading on screen. You can make the website on your
computer's hard disk and upload it to the Internet when it is finished.

What's next?

Go to the next lesson and read about HTML before the fun really starts in the third Lesson
(Lesson 3)



Nugget 2: What is HTML?
This lesson will give you a brief presentation of your new friend, HTML.

What is HTML?

HTML is the "mother tongue" of your browser.

To make a long story short, HTML was invented in 1990 by a scientist called Tim Berners-Lee.
The purpose was to make it easier for scientists at different universities to gain access to each
other's research documents. The project became a bigger success than Tim Berners-Lee had
ever imagined. By inventing HTML he laid the foundation for the web as we know it today.

HTML is a language, which makes it possible to present information (e.g. scientific research) on
the Internet. What you see when you view a page on the Internet is your browser's
interpretation of HTML. To see the HTML code of a page on the internet, simply click "View" in
the top menu of your browser and choose "Source".




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




For the untrained eye, HTML code looks complicated but this tutorial will help you make sense
of it all.

What can I use HTML for?

If you want to make websites, there is no way around HTML. Even if you're using a program to
create websites, such as Dreamweaver, a basic knowledge of HTML can make life a lot simpler
and your website a lot better. The good news is that HTML is easy to learn and use. In just two
lessons from now you will have learned how to make your first website.

HTML is used to make websites. It is as simple as that!

Okay, but what does H-T-M-L stand for?

HTML is an abbreviation for "HyperText Mark-up Language" - which is already more than you
need to know at this stage. However, for the sake of good order, let us explain in greater detail.

Hyper is the opposite of linear. In the good old days - when a mouse was something the cat
chased - computer programs ran linearly: when the program had executed one action it went to
the next line and after that, the next line and so on. But HTML is different - you can go
wherever you want and whenever you want. For example, it is not necessary to visit
Microbold.tk before you visit twibie.tk.

Text is self-explanatory.

Mark-up is what you do with the text. You are marking up the text the same way you do in a
text editing program with headings, bullets and bold text and so on.

Language is what HTML is. It uses many English words.



2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


In this tutorial you will learn so-called XHTML (Extensible HyperText Mark-up Language) which,
in short, is a new                                         and well-structured way of writing
                        <em>Emphasized
HTML.
                      text.</em>
Now you know                                               what HTML (and XHTML) stands for
let's get started with what it is all about: making websites.



Nugget 3: Elements and tags
You are now ready to learn the essence of HTML: elements.

Elements give structure to a HTML document and tell the browser how you want your website
to be presented. Generally elements consist of a start tag, some content, and an end tag.

"Tags"?

Tags are labels you use to mark up the beginning and end of an element.

All tags have the same format: they begin with a less-than sign "<" and end with a greater-than
sign ">".

Generally speaking, there are two kinds of tags - opening tags: <html> and closing tags:
</html>. The only difference between an opening tag and a closing tag is the forward slash "/".
You label content by putting it between an opening tag and a closing tag.



HTML is all about elements. To learn HTML is to learn and use different tags.

Can you show me some examples?

Okay, the element “em” emphasis text. All text between the opening tag <em> and the closing
tag </em> is emphasized in the browser. ("em" is short for "emphasis".)




Example 1:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




Will look like this in the browser:

Emphasized text.



The elements h1, h2, h3, h4, h5 and h6 is used to make headings (h stands for "heading"),
where h1 is the first level and normally the largest text, h2 is the second level and normally
slightly smaller text, and h6 is the sixth and last in the hierarchy of headings and normally the
smallest text.



Example 2:

      <h1>This is a
      heading</h1>
      <h2>This is a                           Will look like this in the browser:
      subheading</h2>
                                               This is a heading
                                               This is a subheading
So, I always need an opening tag and a closing tag?

As they say, there's an exception to every rule and in HTML the exception is that there are a
few elements which both open and close in the same tag. These so-called empty elements are
not connected to a specific passage in the text but rather are isolated labels, for example, a line
break which looks like this: <br />.

Should tags be typed in uppercase or lowercase?

Most browsers might not care if you type your tags in upper, lower or mixed cases. <HTML>,
<html> or <HtMl> will normally give the same result. However, the correct way is to type tags in
lowercase. So get into the habit of writing your tags in lowercase.

Where do I put all these tags?




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


You type your tags in an HTML document. A website contains one or more HTML documents.
When you surf the Web, you merely open different HTML documents.

If you continue to the next lesson in 10 minutes you will have made your first website.




Nugget 4: Create your first website
With what you learned in the previous lessons, you are now only minutes away from making
your first website.

How?

In Lesson 1 we looked at what is needed to make a website: a browser and Notepad (or similar
text editor). Since you are reading this, you most likely already have your browser open. The
only thing you need to do is to open an extra browser window (open the browser one more
time) so you can read this tutorial and see your new website at the same time.

Also, open Notepad (in Accessories under Programs in the Start menu):




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Now we are ready!

What can I do?

Let us start with something simple. How about a page that says: "Hurrah! This is my first
website." Read on and you'll find out how simple it is.



HTML is simple and logical. The browser reads HTML like you read English: from the top down
and from left to right. Thus, a simple HTML document begins with what should come first and
ends with what should come last.

The first thing you need to do is to tell the browser that you will "talk" to it in the language
HTML. This is done with the tag <html> (no surprises there). So before you do anything else
type "<html>" in the first line of your document in Notepad.



As you may recall from the previous lessons, <html> is an opening tag and must be closed with
a closing tag when you are finished typing HTML. So to make sure you don't forget the HTML
close tag now type "</html>" a couple of lines down and write the rest of the document
between <html> and </html>.



The next thing your document needs is a "head", which provides information about your
document, and a "body", which is the content of the document. Since HTML is nothing if not
logical, the head (<head> and </head>) is on top of the body (<body> and </body>).

Your document should now look like this:

       <html>
 <head>
</head>
 <body>
</body>
       </html>




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Note how we structured the tags with new lines (using the Enter key) as well as indents (using
the Tab key). In principle, it does not matter how you structure your HTML document. But to
help you, and others reading your coding, to keep an overview, it is strongly recommended that
you structure your HTML in a neat way with line breaks and indents, like the above example.

If your document looks like the above example, you have made your first website - a
particularly boring website and probably not what you dreamt of when you started this tutorial
but still some sort of a website. What you have made will be the basic template for all your
future HTML documents.

So far so good, but how do I add content to my website?

As you learnt earlier, your HTML document has two parts: a head and a body. In the head
section you write information about the page, while the body contains the information that
constitutes the page.

For example, if you want to give the page a title which will appear in the top bar of the browser,
it should be done in the "head" section. The element used for a title is title. I.e. write the title of
the page between the opening tag <title> and the closing tag </title>:



                               <title>My first website</title>




Note that this title will not appear on the page itself. Anything you want to appear on the page
is content and must therefore be added between the "body" tags.

As promised, we want the page to say "Hurrah! This is my first website." This is the text that we
want to communicate and it therefore belongs in the body section. So in the body section, type
the following:



                        <p>Hurrah! This is my first website.</p>



The p in <p> is short for "paragraph" which is exactly what it is - a text paragraph.

Your HTML document should now look like this:


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




                   <html>
              <head>
               <title>My first website </title>
              </head>
                     <body>
                     <p>Hurrah! This is my
              website.</p>
                     </body>
                   </html>


Done! You have now made your first real website!

Next all you have to do is to save it to your hard drive and then open it in your browser:

        In Notepad choose "Save as..." under "File" in the top menu.
       Choose "All Files" in the "Save as type" box. This is very important - otherwise, you save
       it as a text document and not as an HTML document.
       Now save your document as "page1.htm" (the ending ".htm" indicates that it is an HTML
       document. ".html" gives the same result. I always use ".htm", but you can choose
       whichever of the two extensions you prefer). It doesn't matter where you save the
       document on your hard drive - as long as you remember where you saved it so you can
       find it again.




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




Now go to the browser:

       In the top menu choose "Open" under "File" (or press CTRL+O).
       Click "Browse" in the box that appears
       Now find your HTML document and click "Open".




It now should say, "Hurrah! This is my first website." in your browser. Congratulations!!!

If you absolutely want the whole world to see your masterpiece right away, you can jump to
Lesson 13 and learn how to upload your page to the Internet. Otherwise, be patient and read
on. The fun has just begun.



Nugget 5: What have you learned so far?
Always start with the basic template we made in the previous lesson:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…



                              <html>
                                     <head>
                                    <title></title>
                                       </head>
                                       <body>
                                       </body>
                              </html>


In the head section, always write a title: <title>The title of your page</title>. Notice how the
title will be shown in the upper left corner of your browser:




The title is especially important because it is used by search engines (such as Google) to index
your website and is shown in the search results.




In the body section, you write the actual content of the page. You already know some of the
most important elements:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…



<p>Is used for
paragraphs.</p>
<em>Emphasis
text.</em>
<h1>Heading</h1>
<h2>Subhead</h2>
<h3>Sub-
subhead</h3>


Remember, the only way to learn HTML is by trial and error. But don't worry, there is no way
you can destroy your computer or the Internet. So keep experimenting - that is the best way to
gain experience.




What is that supposed to mean?

Nobody becomes a good website creator by learning the examples in website journals. What
you get in this tutorial is simply a basic understanding of the building blocks - to become good
you must use the building blocks in new and creative ways.

So, get out in the deep water and stand on your own two feet... Okay, maybe not. But give it a
go and experiment with what you have learned.

So what's next?

Try to create a few pages yourself. For instance, make a page with a title, a heading, some text,
a subhead and some more text. It is perfectly okay to look in the tutorial while you make your
first pages. But later, see if you can do it on your own - without looking.




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Nugget 6: A few more elements
Did you manage to make a few pages on your own? If not, here is an example:

<html>
 <head>
 <title>My
website</title>
 </head>
 <body>
 <h1>A Heading</h1>
 <p>text, text text,
text</p>
 <h2>Subhead</h2>
 <p>text, text text,
text</p>
 </body>
</html>


Now what?

Now it is time to learn seven new elements.

In the same way you emphasize the text by putting it between the opening tag <em> and the
closing tag </em>, you can give stronger emphasis by using the opening tag <strong> and the
closing tag </strong>.

Example 1:

                      <strong>Stronger emphasis.</strong>



Will look like this in the browser:


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


 Stronger emphasis.



Likewise, you can make your text smaller using small:

Example 2:

                     <small>This should be in small.</small>



Will look like this in the browser:

 This should be in small.



Can I use several elements at the same time?

You can easily use several elements at the same time as long as you avoid overlapping
elements. This is best illustrated by an example:

Example 3:

If you want to emphasize small text, it must be done like this:

       <em><small>Emphasized small text</small></em>




And NOT like this:

       <em><small>Emphasized small
       text</em></small><em><small>Emphasize
       small text</em></small>

      The difference is that in the first example, we closed the tag we first opened last. This
way we avoid confusing both ourselves and the browser.

More elements!




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


As mentioned in Lesson 3 there are elements which are opened and closed in the same tag.
These so-called empty elements are not connected to a specific passage in the text but rather
are isolated labels. An example of such a tag is <br /> which creates a forced line break:

Example 4:

       My name is John Doe<br />I study at Microbold ICT Centre.



Will look like this in the browser:



My name is John Doe
I study at Microbold ICT Centre.


Notice that the tag is written as a contraction of an opening and closing tag with an empty
space and a forward slash at the end: <br />.

Another element that is opened and closed in the same tag is <hr /> which is used to draw a
horizontal line ("hr" stands for "horizontal rule"):

Example 5:

       <hr />



Will look like this in the browser:




Examples of elements that needs both an opening tag and a closing tag - as most elements do -
is ul, ol and li. These elements are used when you want to make lists.

ul is short for "unordered list" and inserts bullets for each list item. ol is short for "ordered list"
and numbers each list item. To make items in the list use the li tag ("list item"). Confused? See
the examples:

Example 7:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


        <ul>

         <li>A list item</li>

         <li>Another list item</li>

        </ul>

will look like this in the browser:

        A list item
        Another list item


Example 8:

        <ol>

         <li>First list item</li>

         <li>Second list item</li>

        </ol>

will look like this in the browser:

    1. First list item
    2. Second list item
    3. Phew! Is that all?

That is all for now. Again, experiment and make your own pages using some of the seven new
elements you learned in this lesson:

        <strong>Stronger emphasis</strong>

        <small>Small text</small>

        <br /> Line shift

        <hr /> Horizontal line


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


       <ul>List</ul>

       <ol>Ordered list</ol>

       <li>List item</li>




Nugget 7: Attributes
You can add attributes to a number of elements.

What is an attribute?

As you probably remember, elements give structure to a HTML document and tells the browser
how you want your website to be presented (for example, <br /> informs the browser to make
a line break). In some elements you can add more information. Such additional information is
called an attribute.

Example 1:

       <h2 style="background-color:#ff0000;">My friendship with HTML</h2>

Attributes are always written within a start tag and are followed by an equal’s sign and the
attribute details written between inverted commas. The semicolon after the attribute is for
separating different style commands. We will get back to that later.

What is the catch?

There are many different attributes. The first one you will learn is style. With the style attribute
you can add layout to your website. For instance a background colour:

Example 2:

       <html>

         <head>

         </head>

         <body style="background-color:#ff0000;">

2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


          </body>

        </html>

will show a completely red page in the browser - go ahead and see for yourself. We will explain
in greater detail how the colour system works in a few moments.

Note that some tags and attributes use US spelling i.e. color instead of colour. It is important
that you are careful to use the same spelling as we use in the examples in this tutorial -
otherwise, browsers will not be able to understand your codes. Also, don't forget to always
close the inverted commas (quotation marks) after an attribute.

How did the page become red?



In the above example, we asked for the background colour with the code "#ff0000". This is the
colour code for red using so called hexadecimal numbers (HEX). Each colour has its own
hexadecimal number. Here are some examples:



White: #ffffff

Black: #000000 (zeros)

Red: #ff0000

Blue: #0000ff

Green: #00ff00

Yellow: #ffff00



A hexadecimal colour code consists of # and six digits or letters. There are more than 1000 HEX
codes and it is not easy to figure out which HEX code is tied to a specific colour. To make it
easier we have made a chart of the 216 most commonly used colours.

You can also use the English name for the most common colours (white, black, red, blue, green
and yellow).

Example 3:


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


       <body style="background-color: red;">

That should do for colors right now. Let's get back to the attributes.

Which elements can use attributes?

Different attributes can be applied to most elements. You will often use attributes in tags such
as the body tag while you will rarely use attributes in, for example, a br tag since a line break
normally is a line break without any parameters to adjust.

Just as there are many different elements, so there are many different attributes. Some
attributes are tailor made for one particular element while others can be used for many
different elements. And vice versa: some elements can only contain one kind of attribute while
others can contain many.

It may sound a bit confusing but once you get acquainted with the different attributes it is
actually very logical and you will soon see how easy they are to use and how many possibilities
they provide. This tutorial will introduce you to the most important attributes.

Exactly what parts does an element consist of?

Generally an element consists of a start tag with or without one or more attributes, some
content and an end tag. Simple as that. See the illustration below.




Nugget 8: Links
In this lesson, you will learn how to make links between pages.

What do I need to make a link?

To make links, you use what you always use when coding HTML: an element. A simple element
with one attribute and you will be able to link to anything and everything. Here is an example of
what a link to HTML.net could look like:

Example 1:

       <a href="http://www.microbold.tk/">Here is a link to Microbold</a>

Would look like this in the browser:

                        Here is a link to Microbold


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




The element a stands for "anchor". And the attribute href is short for "hypertext reference",
which specifies where the link leads to - typically an address on the internet or a file name.



In the above example the attribute href has the value "http://www.microbold.tk", which is the
full address of Microbold and is called a URL (Uniform Resource Locator). Note that "http://"
must always be included in URLs. The sentence "Here is a link to Microbold" is the text that is
shown in the browser as the link. Remember to close the element with an </a>.

What about links between my own pages?

If you want to make a link between pages on the same website, you do not need to spell out
the entire address (URL) for the document. For example, if you have made two pages (let us call
them page1.htm and page2.htm) and saved them in the same folder you can make a link from
one page to the other by only typing the name of the file in the link. Under such circumstances
a link from page1.htm to page2.htm could look like this:

Example 2:

       <a href="page2.htm">Click here to go to page 2</a>



If page 2 were placed in a subfolder (named "subfolder"), the link could look like this:

Example 3:

       <a href="subfolder/page2.htm">Click here to go to page 2</a>

The other way around, a link from page 2 (in the subfolder) to page 1 would look like this:

Example 4:

       <a href="../page1.htm">A link to page 1</a>



"../" points to the folder one level up from position of the file from which the link is made.
Following the same system, you can also point two (or more) folders up by writing "../../".

Did you understand the system? Alternatively, you can always type the complete address for
the file (URL).


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




What about internal links within a page?

You can also create internal links within a page - for example a table of contents at the top with
links to each chapter below. All you need to use is a very useful attribute called id
(identification) and the symbol "#".

Use the id attribute to mark the element to which you want to link. For example:

       <h1 id="heading1">heading 1</h1>

You can now create a link to that element by using "#" in the link attribute. The "#" must be
followed by the id of the tag you want to link to. For example:

       <a href="#heading1">Link to heading 1</a>

All will become clear with an example:

Example 5:

       <html>

         <head>

         </head>

         <body>

               <p><a href="#heading1">Link to heading 1</a></p>

               <p><a href="#heading2">Link to heading 2</a></p>

               <h1 id="heading1">heading 1</h1>

               <p>Text text text text</p>

               <h1 id="heading2">heading 2</h1>

2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


                <p>Text text text text</p>

         </body>

</html>

will look like this in the browser (click on the two links):

Link to heading 1

Link to heading 2



Heading 1
Text text text text



Heading 2
Text text text text



(Note: An id attribute must start with a letter)

Can I link to anything else?

You can also make a link to an e-mail address. It is done in almost the same way as when you
link to a document:

Example 6:

        <a href="mailto:microbold@ovi.com">Send an e-mail to Microbold</a>

will look like this in the browser:

Send an e-mail to nobody at Microbold

The only difference between a link to an e-mail and a link to a file is that instead of typing the
address of a document, you type mailto: followed by an e-mail address. When the link is
clicked, the default e-mail program opens with a new blank message addressed to the specified


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


e-mail address. Please note that this function will only work if there is an e-mail program
installed on your computer. Give it a try!

Are there any other attributes I should know of?

To create a link, you always have to use the href attribute. In addition, you can also put a title
on your link:

Example 7:

     <a href="http://www.microbold.tk/" title="Visit Microbold today and learn
HTML">Microbold HTML Tutorials</a>

Would look like this in the browser:

Microbold HTML Tutorials (Title cannot be shown here. Visit the tutorials page HERE to view)

The title attribute is used to type a short description of the link. If you - without clicking - place
the cursor over the link, you will see the text "Visit HTML.net and learn HTML" appears.



Nugget 9: Images
Wouldn't it be great if you could have an image of Steve Jobs, one of the greatest innovators of
our time (not until he died) right in the centre of your page?

That sounds like a bit of a challenge...

Maybe, but in fact it is pretty easy to do. All you need is an element:

Example 1:

       <img src="steve jobs.jpg" alt="Steve Jobs" />

would look like this in the browser:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




All you need do is first tell the browser that you want to insert an image (img) and then where it
is located (src, short for "source"). Do you get the picture?



Notice how the img element is opened and closed using the same tag. Like the <br /> tag, it is
not tied to a piece of text.

"steve jobs.jpg" is the name of the image file you want to insert in your page. ".jpg" is the file
type of the image. Just like the extension ".htm" shows that a file is an HTML document, ".jpg"
tells the browser that a file is a picture. There are three different types of image file types you
can insert into your pages:



GIF (Graphics Interchange Format)

JPG / JPEG (Joint Photographic Experts Group)

PNG (Portable Network Graphics)



GIF images are usually best for graphics and drawings, while JPEG images are usually better for
photographs. This is for two reasons: first, GIF images only consist of 256 colours, while JPEG
images comprise of millions of colours and second, the GIF format is better at compressing
simple images, than the JPEG format which is optimized for more complex images. The better
the compression, the smaller the size of the image file, the faster your page will load. As you
probably know from your own experience, unnecessarily 'heavy' pages can be extremely
annoying for the user.




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




Traditionally, the GIF and JPEG formats have been the two dominant image types, but lately,
the PNG format has become more and more popular (primarily at the expense of the GIF
format). The PNG format contains in many ways the best of both the JPEG and GIF format:
millions of colours and effective compressing.

Where do I get my images from?

To make your own images, you need an image editing program. An image editing program is
one of the most essential tools you need to create beautiful websites.

Unfortunately, no good image editing programs comes with Windows or other operating
systems. Thus, you might consider investing in Paint Shop Pro, PhotoShop or Macromedia
Fireworks, which are three of the best image editing programs currently on the market.



However, as we said before, it will not be necessary to buy expensive programs to complete
this tutorial. For now, you can download the excellent image editing program IrfanView which
is so-called freeware and therefore costs nothing.

Or you can just borrow images from other sites by downloading them. But please be careful not
to violate copyrights when downloading pictures. Still, it's useful to know how to download
pictures, so here's how you do it:

   1. Right-click on an image on any image on the Internet.
   2. Choose "Save picture as..." in the menu that appears.
   3. Choose a location for the image on your computer and press "Save".

Do this with the image below and save it on your computer at the same location as your HTML
documents. (This can only be done in your browser. Visit the Tutorial to view it):




Now you can insert the image into one of your own pages. Try it yourself.

Is that all I need to know about images?

There are a few more things you should know about images.


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


First, you can easily insert pictures located in other folders, or even pictures that are located
on other websites:

Example 2:

       <img src="images/logo.png" />



Example 3:

       <img src="http://www.html.net/logo.png" />



Second, images can be links:



Example 4:

       <a href="http://www.html.net">

       <img src="logo.png" /></a>

will look like this in the browser (try clicking on the image):




Are there any other attributes I should know about?

You always need to use the attribute src, which tells the browser where the image is located.
Besides that, there are a number of other attributes which can be useful when inserting images.

The alt attribute is used to give an alternate description of an image if, for some reason, the
image is not shown for the user. This is especially important for users with impaired vision, or if
the page is loaded very slowly. Therefore, always use the alt attribute:

Example 5:

       <img src="logo.gif" alt="Microbold and Nigeria Book Foundation Logo" />



2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Some browsers let the text of the alt attribute appear as a small pop-up box when the user
places their cursor over the picture. Please note that when using the alt attribute, the aim is to
provide an alternative description of the picture. The alt attribute should not be used to create
special pop-up messages for the user since then visually impaired users will hear the message
without knowing what the picture is.

The title attribute can be used to add information to the image:

Example 6:

       <img src="logo.gif" title="Get Proficient With Microbold" />

Will look like this in the browser:




If you, without clicking, place the cursor over the image, you will see the text " Get Proficient
With Microbold" appear as a pop-up box.

Two other important attributes are width and height:

Example 7:

       <img src="logo.png" width="141px" height="32px" />

will look like this in the browser:




                            (Dimension not accurate here view in tutorial)

The width and height attributes can be used to set the height and width of an image. The value
that is used to set the width and height is pixels. Pixels are the units of measurement used to
measure the resolution of screens. (The most common screen resolution is 1024x768 pixels).


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Unlike centimetres, pixels are relative units of measurement which depend on the resolution of
the screen. To a user with a high screen resolution, 25 pixels may correspond to 1 centimetre,
while the same 25 pixel in a low screen resolution may correspond to 1.5 centimetres on the
screen.

If you do not set the width and height, the image will be inserted in its actual size. But with
width and height you can manipulate the size:

Example 8:

        <img src="logo.gif" width="32px" height="32px" />

will look like this in the browser:




        (Dimension not accurate here view in tutorial)

However, it is worth keeping in mind that the actual size in kilobytes of the image file will
remain the same so it will take the same time to load the image as it did before, even though it
appears smaller on the screen. Therefore, you should never decrease the image size by using
the width and height attributes. Instead, you should always resize your images in an image
editing program to make your pages lighter and faster.

That said, it is still a good idea to use the width and height attributes because the browser will
then be able to detect how much space the image will need in the final page layout before the
image is fully downloaded. This allows your browser to set up the page nicely in a quicker way.

That's enough about Steve Jobs and images for now.




Nugget 10: Tables
Tables are used when you need to show "tabular data" i.e. information that is logically
presented in rows and columns.

Is it difficult?




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Building tables in HTML may at first seem complicated but if you keep cool and watch your
step, it is actually strictly logical - just like everything else in HTML.

Example 1:




<table>

         <tr>

                <td>Cell 1</td>

                <td>Cell 2</td>

         </tr>

         <tr>

                <td>Cell 3</td>

                <td>Cell 4</td>

         </tr>

       </table>

Will look like this in the browser:



2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Cell 1                                                                Cell 2

Cell 3                                                                Cell 4



What's the difference between <tr> and <td>?

As you will see from the above example, this is probably the most complicated HTML example
we have given you so far. Let's break it down and explain the different tags:



3 different elements are used to insert tables:

The opening tag <table> and the closing tag </table> starts and ends the table. Logical.

<tr> stands for "table row" and starts and ends horizontal rows. Still logical.

<td> is short for "table data". This tag starts and ends each cell in the rows of your table. All
simple and logical.



Here is what happens in Example 1: the table starts with a <table>, followed by a <tr>, which
indicates the beginning of a new row. Two cells are inserted in this row: <td>Cell 1</td> and
<td>Cell 2</td>. The row is hereafter closed with a </tr> and a new row <tr> begins
immediately after. The new row also contains two cells. The table is closed with </table>.

Just to make it clear: rows are horizontal lines of cells and columns are vertical lines of cells:

Cell 1                                              Cell 2
Cell 3                                              Cell 4


Cell 1 and Cell 2 form a row. Cell 1 and Cell 3 form a column.

In the above example, the table has two rows and two columns. However, a table can have an
unlimited number of rows and columns.



Example 2:

         <table>



2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


          <tr>

                  <td>Cell 1</td>

                  <td>Cell 2</td>

                  <td>Cell 3</td>

                  <td>Cell 4</td>

          </tr>

          <tr>

                  <td>Cell 5</td>

                  <td>Cell 6</td>

                  <td>Cell 7</td>

                  <td>Cell 8</td>

          </tr>

          <tr>

                  <td>Cell 9</td>

                  <td>Cell 10</td>

                  <td>Cell 11</td>

                  <td>Cell 12</td>

          </tr>

         </table>



Will look like this in the browser:

Cell 1                          Cell 2               Cell 3    Cell 4

Cell 5                          Cell 6               Cell 7    Cell 8

Cell 9                          Cell 10              Cell 11   Cell 12



2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




Are there any attributes?

Of course there are attributes. For example, the border attribute is used to specify the
thickness of the border around your table:

Example 3:

         <table border="1">

          <tr>

                  <td>Cell 1</td>

                  <td>Cell 2</td>

          </tr>

          <tr>

                  <td>Cell 3</td>

                  <td>Cell 4</td>

          </tr>

         </table>



Will look like this in the browser:

Cell 1                                             Cell 2
Cell 3                                             Cell 4


The thickness of the border is specified in pixels (See nugget 9)

As with images, you can also set the width of a table in pixels - or alternatively in percentage of
the screen:



Example 4:

         <table border="1" width="30%">


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




This example will be displayed in the browser as a table with the width of 30% of the screen.
Try it yourself.

More attributes?

There are lots of attributes for tables. Here are two more:

align: specifies the horizontal alignment of the content in the entire table, in a row or in a single
cell. For example, left, center or right.

valign: specifies the vertical alignment of the content in a cell. For example, top, middle or
bottom.




Example 5:

       <td align="right" valign="top">Cell 1</td>

What can I insert in my tables?

Theoretically, you can insert anything in tables: text, links and images... BUT tables are meant
for presenting tabular data (i.e. data which can be meaningfully presented in columns and
rows) so refrain from putting things into tables simply because you want them to be placed
next to each other.

In the old days on the Internet - i.e. a few years ago - tables were often used as a layout tool.
But if you want to control the presentation of texts and images there is a much cooler way to
do it (hint: CSS). But that would be much later.

Now, put what you just learned to practice and design a number of tables in different sizes,
with different attributes and content. This should keep you busy for hours.




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


Nugget 11: More about tables
The title "More about tables" may sound a bit boring. But look at the positive side, when you
master tables, there is absolutely nothing about HTML that will knock you out.

What is left then?

The two attributes colspan and rowspan are used when you want to create fancy tables.



Colspan is short for "column span". Colspan is used in the <td> tag to specify how many
columns the cell should span:




Example 1:

       <table border="1">

         <tr>

                 <td colspan="3">Cell 1</td>

         </tr>

         <tr>

                 <td>Cell 2</td>

                 <td>Cell 3</td>

                 <td>Cell 4</td>

         </tr>

       </table>



Will look like this in the browser:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


 Cell 1

 Cell 2                       Cell3                               Cell 4



By setting colspan to "3", the cell in the first row spans three columns. If we instead had set
colspan to "2", the cell would only have spanned two columns and it would have been
necessary to insert an additional cell in the first row so that the number of columns will fit in
the two rows.



Example 2:

<table border="1">
 <tr>
          <td colspan="2">Cell
1</td>
          <td>Cell 2</td>
 </tr>
 <tr>
          <td>Cell 3</td>
          <td>Cell 4</td>
          <td>Cell 5</td>
 </tr>
</table>


Will look like this in the browser:

 Cell 1                                                                    Cell 2

 Cell 3                               Cell 4                               Cell 5




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


What about rowspan?

As you might already have guessed, rowspan specifies how many rows a cell should span over:



Example 3:

<table border="1">
 <tr>
       <td rowspan="3">Cell
1</td> <td>Cell 2</td>
 </tr>
 <tr>
       <td>Cell 3</td>
 </tr>
 <tr>
       <td>Cell 4</td>
 </tr>
</table>




Will look like this in the browser:

 Cell 1                                           Cell 2

                                                  Cell 3

                                                  Cell 4



In the example above rowspan is set to "3" in Cell 1. This specifies that the cell must span over 3
rows (its own row plus an additional two). Cell 1 and Cell 2 are thereby in the same row, while
Cell 3 and Cell 4 form two independent rows.

Confused? Well, it is not uncomplicated and it is easy to lose track. Therefore, it might be a
good idea to draw the table on a piece of paper before you begin with the HTML.

Not confused? Then go ahead and create a couple of tables with both colspan and rowspan on
your own.




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…




Nugget 12: Layout (CSS)
Wouldn't it be great if you could give your pages the layout they deserve?

Sure, but how?

To give your website layout use Cascading Style Sheets (CSS). In this lesson you will get a short
introduction to CSS. But later you can learn all about CSS from scratch in our CSS tutorial. So
please consider this lesson only as an appetizer.

CSS is the better half of HTML. And in coding, there is no equality of status: HTML takes care of
the rough stuff (the structure), while CSS gives it a nice touch (layout).

As shown in Lesson 7, CSS can be added with the style attribute. For example, you can set the
font type and size on a paragraph:



Example 1:

<p style="font-size:20px;">This is typed in size 20px</p>
<p style="font-family:courier;">This is typed in Courier</p>
<p style="font-size:20px; font-family:courier;">This is typed in Courier size 20px</p>




Will look like this in the browser:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


 This is typed in size 20px
 This is typed in Courier
 This is typed in Courier size 20px


In the example above we use the style attribute to specify the type of font to be used (with the
command font-family) and the font size (with the command font-size). Notice how in the last
paragraph we set both the font type and size with a separating semicolon.

It seems like a lot of work?

One of the smart features of CSS is the possibility to manage your layout centrally. Instead of
using the style attribute in each tag, you can tell the browser once how it must layout all the
text on the page:

Example 2:




       <html>
         <head>
         <title>My first CSS page</title>
         <style type="text/css">
     h1 {font-size: 30px; font-family:
   arial;}
    h2 {font-size: 15px; font-family:
   courier;}
       p {font-size: 8px; font-family: "times
new roman";}
         </style>
         </head>
         <body>


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…



         <h1>My first CSS page</h1>
         <h2>Welcome to my first CSS
   page</h2>
         <p>Here you can see how CSS
   works </p>
         </body>
       </html>




       Show example>>



In the example above CSS has been inserted in the head section and therefore applies to the
entire page. To do this, just use the tag <style type="text/css"> which tells the browser that you
are typing CSS.



In the example all headings on the page will be in Arial in size 30px. All subheads will in Courier
size 15. And all text in normal paragraphs will be in Times New Roman size 8.

Another option is to type the CSS in a separate document. With a separate CSS document you
can manage the layout of many pages all at once. Pretty smart if you want to change the font
type or size on a large website with hundreds or thousands of pages. We won't go into that
now but you can learn it later in our CSS tutorial.

What else can I do with CSS?

CSS can be used for much more than specifying font types and sizes. For example, you can add
colours and backgrounds. Here are some examples for you to experiment with:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


<p style="color:green;">Green text</p>                               Microbold Summer ICT
                                                                     Classes for the year.
<h1 style="background-color: blue;">Heading on
blue background</h1>                                                       JavaScript
<body style="background-image:                                             HTML
                                                                           PHP
url('http://www.html.net/logo.png');">
                                                                           Visual Basic
                                                                           File Processing
Try inserting the examples in some of your pages - both as                 Basic
shown above and also as CSS inserted in the head section.                  Networking
                                                                           Computer
                                                                           Appreciation
Is CSS nothing but colours and font types?

Besides adding layout such as colors, font types etc., CSS can
also be used to control the page setup and presentation
(margins, float, alignment, width, height etc.). By regulating the
different elements with CSS you are able to layout your pages
elegantly and precisely.



Example 3:

<p style="padding:25px;border:1px solid red;">I love CSS</p>



Will look like this in the browser:

 I love CSS


With the property float an element can either be floated to the
right or to the left. The following example illustrates the
principle:



Example 4:




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


<img src="studyhub.jpg" alt="Study Hub logo" style= "float:left;" />
<p>Study Hub™ is an educational resource for students of all level. It
serves as a guide and companion towards achieving success.
Adequate information is contained in its well structured knowledge
base in order to give you the right information at all times.
</p>


Will look like this in the browser:



                                      Study Hub™ is an educational resource for students of all level.
                                      It serves as a guide and companion towards achieving success.
                                      Adequate information is contained in its well structured
                                      knowledge base in order to give you the right information at
all times.



In the example, one element (the image) floats to the left and the other element (the text) fills
the hole.

With the property position, you can place an element exactly where you want it in your page:




Example 5:

<img src="bill.jpg" alt="Bill Gates" style="position:absolute;bottom:50px;right:10px;" />



Show example>>

In the example the image is placed 50 pixels from the bottom and 10 pixels from the right in the
browser. But you can place it exactly where you want it. Give it a try. Pretty easy and pretty
cool, eh?

Cool, sure. But easy?




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


You do not learn CSS in 10 minutes. And as mentioned above, this lesson is only meant as a
brief introduction. Later you will learn much more in our CSS Tutorial.

For now, concentrate on HTML, and move on to the next lesson where you will learn how to get
your website out on the Internet so the whole world can see it!




Nugget 13: Uploading pages
Until now, only you have had the satisfaction of viewing your pages. Now it is time for the rest
of the world to see your masterpieces.

Is the world ready for that?

The world is ready - you soon will be too. To get your website on the internet, you just need
some server space and a free FTP program.

If you have Internet access, you might already have some free server space for your website.
Your server space will then probably be called something like
http://home.provider.com/~usernumber. But you might need to activate it first. Read more
about this in the papers from your Internet provider or on their support pages.

Another option is to get some free server space on the Internet. In the same way that you set
up an e-mail account (at for example yahoomail), you can register for free server space on the
Internet. Several companies offer such a service - among them 000webhost.com (click "Order
Now" under "Free Hosting") - it will only take a couple of minutes to register.

To have access to the server, you need to know the "Host Name" (For example,
ftp.htmlnet.site50.net) and have your username and password ready.

Is that all I need?

To access the server and upload your pages, you also need an FTP program. FTP is short for File
Transfer Protocol. A FTP program is used to connect two computers over the Internet so that
you can transfer files from your computer to another computer (the server). You might not
have such a program yet, but fortunately, this can be downloaded for free.




2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


There are many different FTP programs. One of the better is FileZilla, which is entirely free. So
now you can download FileZilla at filezilla.sourceforge.net.

And how do I upload the pages?

Described below is how you upload your pages to a free account at 000webhost.com with
FileZilla. But the procedure is, more or less, the same for all providers and FTP programs.

Open the FTP program while connected to the Internet. Insert "Host Name"
("ftp.htmlnet.site50.net" under "Address"), username (under "User") and password (under
"Password") and click "Connect". You should now have access to the server. In one side of the
program you can see the contents of your computer ("Local Site"), and in the other side, you
can see the content of the server ("Remote Site"):




Find your HTML documents and images on your computer (on the "Local site") and transfer
them to the server (the "Remote site") by double clicking on them. Now the whole world can
see them (For example http://james2012.site50.net/page1.htm)!

Name one of the pages "index.htm" (or "index.html") and it will automatically become the start
page. I.e. if you type http://james2012.site50.net (without any filename) you will actually open
http://james2012.site50.net/index.htm.


2012 Journal for Hypertext Mark-up Language (HTML)
Microbold Corporation – Solutions, now loading…


In the long run, it might be a good idea to purchase your own domain (for example www.your-
name.com or www.your-name.net) and avoid the long and complicated addresses you are
being assigned by your Internet provider or from providers of free server space. You can find
and purchase domains at for example Speednames or NetworkSolutions.




2012 Journal for Hypertext Mark-up Language (HTML)

More Related Content

What's hot

HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)actanimation
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part IUnaib Aslam
 
PL2235 2009 1 HTML
PL2235 2009 1 HTMLPL2235 2009 1 HTML
PL2235 2009 1 HTMLAliamat UBD
 
Lecture 4 Footnotes&amp;Answers
Lecture 4  Footnotes&amp;AnswersLecture 4  Footnotes&amp;Answers
Lecture 4 Footnotes&amp;Answersis4030.ray
 
Introduction to html fundamental concepts
Introduction to html fundamental conceptsIntroduction to html fundamental concepts
Introduction to html fundamental conceptsTsebo Shaun Masilo
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersRasin Bekkevold
 
Screen Pages - Mage Titans - i18n Translations - Magento 2
Screen Pages  - Mage Titans - i18n Translations - Magento 2Screen Pages  - Mage Titans - i18n Translations - Magento 2
Screen Pages - Mage Titans - i18n Translations - Magento 2Tadhg Bowe
 
freeessentialtools
freeessentialtoolsfreeessentialtools
freeessentialtoolsmrb205
 
BASIC HTML PRESENTATION
BASIC HTML PRESENTATIONBASIC HTML PRESENTATION
BASIC HTML PRESENTATIONTHABISO BALOYI
 
Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...webhostingguy
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5nobel mujuji
 
Shibapratim Bagchi HTML tutorial
Shibapratim Bagchi HTML tutorialShibapratim Bagchi HTML tutorial
Shibapratim Bagchi HTML tutorialShibapratim Bagchi
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSTimo Herttua
 

What's hot (20)

HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)HTML (Hyper Text Markup Language)
HTML (Hyper Text Markup Language)
 
Html for beginners part I
Html for beginners part IHtml for beginners part I
Html for beginners part I
 
PL2235 2009 1 HTML
PL2235 2009 1 HTMLPL2235 2009 1 HTML
PL2235 2009 1 HTML
 
Lecture 4 Footnotes&amp;Answers
Lecture 4  Footnotes&amp;AnswersLecture 4  Footnotes&amp;Answers
Lecture 4 Footnotes&amp;Answers
 
Introduction to html fundamental concepts
Introduction to html fundamental conceptsIntroduction to html fundamental concepts
Introduction to html fundamental concepts
 
The Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for BeginnersThe Difference between HTML, XHTML & HTML5 for Beginners
The Difference between HTML, XHTML & HTML5 for Beginners
 
Lecture 9 Accessibility Original
Lecture 9 Accessibility OriginalLecture 9 Accessibility Original
Lecture 9 Accessibility Original
 
Raju html
Raju htmlRaju html
Raju html
 
Screen Pages - Mage Titans - i18n Translations - Magento 2
Screen Pages  - Mage Titans - i18n Translations - Magento 2Screen Pages  - Mage Titans - i18n Translations - Magento 2
Screen Pages - Mage Titans - i18n Translations - Magento 2
 
Let me design
Let me designLet me design
Let me design
 
freeessentialtools
freeessentialtoolsfreeessentialtools
freeessentialtools
 
BASIC HTML PRESENTATION
BASIC HTML PRESENTATIONBASIC HTML PRESENTATION
BASIC HTML PRESENTATION
 
Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...Web Development From the Ground Up, a Series for Novice ...
Web Development From the Ground Up, a Series for Novice ...
 
Chapter 2 introduction to html5
Chapter 2 introduction to html5Chapter 2 introduction to html5
Chapter 2 introduction to html5
 
Shibapratim Bagchi HTML tutorial
Shibapratim Bagchi HTML tutorialShibapratim Bagchi HTML tutorial
Shibapratim Bagchi HTML tutorial
 
HTML & CSS Guide
HTML & CSS GuideHTML & CSS Guide
HTML & CSS Guide
 
Html
HtmlHtml
Html
 
Using E-mail In The Office
Using E-mail In The OfficeUsing E-mail In The Office
Using E-mail In The Office
 
Rails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSSRails Girls - Introduction to HTML & CSS
Rails Girls - Introduction to HTML & CSS
 
HTML
HTMLHTML
HTML
 

Viewers also liked

Chris Kweks - Think BIG! Do More.
Chris Kweks - Think BIG! Do More.Chris Kweks - Think BIG! Do More.
Chris Kweks - Think BIG! Do More.Chris Kwekowe
 
Street Events Registration Tutorial 13
Street Events Registration Tutorial 13Street Events Registration Tutorial 13
Street Events Registration Tutorial 13MarenSteamboatChamber
 
Learning to become - the future of education with technology
Learning to become - the future of education with technologyLearning to become - the future of education with technology
Learning to become - the future of education with technologyChris Kwekowe
 
Study hub 2013 presentation
Study hub 2013 presentationStudy hub 2013 presentation
Study hub 2013 presentationChris Kwekowe
 
Impact of environmental protection requirements on the design
Impact of environmental protection requirements on the designImpact of environmental protection requirements on the design
Impact of environmental protection requirements on the designMohammed Mhnds
 
Oil fate and slick trajectory predictions for oil pollution control combating...
Oil fate and slick trajectory predictions for oil pollution control combating...Oil fate and slick trajectory predictions for oil pollution control combating...
Oil fate and slick trajectory predictions for oil pollution control combating...Mohammed Mhnds
 
Most Affordable Healthcare for College Students
Most Affordable Healthcare for College StudentsMost Affordable Healthcare for College Students
Most Affordable Healthcare for College StudentsSheldon Lee
 
Healthcare Concierge Proposal
Healthcare Concierge ProposalHealthcare Concierge Proposal
Healthcare Concierge ProposalSheldon Lee
 

Viewers also liked (9)

Chris Kweks - Think BIG! Do More.
Chris Kweks - Think BIG! Do More.Chris Kweks - Think BIG! Do More.
Chris Kweks - Think BIG! Do More.
 
Presenta cii on
Presenta cii onPresenta cii on
Presenta cii on
 
Street Events Registration Tutorial 13
Street Events Registration Tutorial 13Street Events Registration Tutorial 13
Street Events Registration Tutorial 13
 
Learning to become - the future of education with technology
Learning to become - the future of education with technologyLearning to become - the future of education with technology
Learning to become - the future of education with technology
 
Study hub 2013 presentation
Study hub 2013 presentationStudy hub 2013 presentation
Study hub 2013 presentation
 
Impact of environmental protection requirements on the design
Impact of environmental protection requirements on the designImpact of environmental protection requirements on the design
Impact of environmental protection requirements on the design
 
Oil fate and slick trajectory predictions for oil pollution control combating...
Oil fate and slick trajectory predictions for oil pollution control combating...Oil fate and slick trajectory predictions for oil pollution control combating...
Oil fate and slick trajectory predictions for oil pollution control combating...
 
Most Affordable Healthcare for College Students
Most Affordable Healthcare for College StudentsMost Affordable Healthcare for College Students
Most Affordable Healthcare for College Students
 
Healthcare Concierge Proposal
Healthcare Concierge ProposalHealthcare Concierge Proposal
Healthcare Concierge Proposal
 

Similar to Html journal chris kweks (microbold)

Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLMayaLisa
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notesDurgadevi palani
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptxshilpak0307
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqarWaqar Chodhry
 
Creating a page in HTML
Creating a page in HTMLCreating a page in HTML
Creating a page in HTMLrobertbenard
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusNANDINI SHARMA
 
The Technique of Solving Html Assignment Questions
The Technique of Solving Html Assignment QuestionsThe Technique of Solving Html Assignment Questions
The Technique of Solving Html Assignment QuestionsLesa Cote
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptTroyfawkes
 
Going native with html5 web components
Going native with html5 web componentsGoing native with html5 web components
Going native with html5 web componentsJames York
 

Similar to Html journal chris kweks (microbold) (20)

A109 base code html
A109 base code   htmlA109 base code   html
A109 base code html
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Dopp xhtml tutorial
Dopp xhtml tutorialDopp xhtml tutorial
Dopp xhtml tutorial
 
Internet programming notes
Internet programming notesInternet programming notes
Internet programming notes
 
Lesson 1
Lesson 1Lesson 1
Lesson 1
 
Grade 7_HTML.pptx
Grade 7_HTML.pptxGrade 7_HTML.pptx
Grade 7_HTML.pptx
 
INTRODUCTIONS OF HTML
INTRODUCTIONS OF HTMLINTRODUCTIONS OF HTML
INTRODUCTIONS OF HTML
 
XHTML Web Designs.pdf
XHTML Web Designs.pdfXHTML Web Designs.pdf
XHTML Web Designs.pdf
 
Html Concept
Html ConceptHtml Concept
Html Concept
 
Web design in 7 days
Web design in 7 daysWeb design in 7 days
Web design in 7 days
 
Web design in 7 days by waqar
Web design in 7 days by waqarWeb design in 7 days by waqar
Web design in 7 days by waqar
 
Importance of HTML
Importance of HTMLImportance of HTML
Importance of HTML
 
Leran html
Leran htmlLeran html
Leran html
 
Html
HtmlHtml
Html
 
Creating a page in HTML
Creating a page in HTMLCreating a page in HTML
Creating a page in HTML
 
Html - Tutorial
Html - TutorialHtml - Tutorial
Html - Tutorial
 
Web Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV SyllabusWeb Engineering UNIT III as per RGPV Syllabus
Web Engineering UNIT III as per RGPV Syllabus
 
The Technique of Solving Html Assignment Questions
The Technique of Solving Html Assignment QuestionsThe Technique of Solving Html Assignment Questions
The Technique of Solving Html Assignment Questions
 
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScriptAn Seo’s Intro to Web Dev, HTML, CSS and JavaScript
An Seo’s Intro to Web Dev, HTML, CSS and JavaScript
 
Going native with html5 web components
Going native with html5 web componentsGoing native with html5 web components
Going native with html5 web components
 

Html journal chris kweks (microbold)

  • 1. Item No. 10923 MICROBOLD CORPORATION HTML JOURNAL 2012 Student Study Pack Item | Microbold Corporation 1 Error! No text of specified style in document. | Microbold Corporation
  • 2. Microbold Corporation – Solutions, now loading… Microbold Corporation HTML Journal 2012 People often think it is extremely difficult to make a website. That is not the case! Everyone can learn how to make a website. And if you read on, you will have made one in a short while. Others believe - just as mistakenly - that expensive and advanced software is needed to make websites. It is true that there are lots of different programs that claim they can create a website for you. Some come closer than others. But if you want it done right, you must do it yourself. Fortunately, it is simple and free (for the most part) and you already have all the software you need. This Microbold journal aims at giving you assistance with our HTML Workability training (which would be referred hitherto as ‘tutorial’ on our website and will give you an easy, yet thorough and correct introduction to how to make websites plus a qualification to take the Microbold HTML Workability Examination. The tutorial starts from scratch and requires absolutely no prior knowledge of programming. This journal cannot show you everything. So some engagement and a will to experiment are required. But don't worry - learning how to make websites is a lot of fun and gives a tremendous amount of satisfaction when you get it right. How you choose to use the journal is up to you. But we suggest you read only two or three lessons a day and take time to experiment with the new things you learn in each lesson. Okay, enough talk. Let's get started! Nugget 1: Let's get started In this first lesson, you will get a brief presentation of the tools you need to make a website. What is needed? 2012 Journal for Hypertext Mark-up Language (HTML)
  • 3. Microbold Corporation – Solutions, now loading… Most likely you already have everything you need. You have a "browser". A browser is the program that makes it possible to browse and open websites. You use a browser to access WebPages like www.microbold.tk, www.facebook.com, or www.yahoomail.com amongst others. It is not important which browser you use. The most common is Microsoft Internet Explorer. But there are others such as Opera and Mozilla Firefox and they can all be used. You might have heard about, or even used, programs such as Microsoft FrontPage, Macromedia Dreamweaver or even Microsoft Word, which can - or claim that they can - create websites for you. Forget these programs for now! They are not of any help to you when learning how to code your own website. Instead, you need a simple text editor. If you are using Windows you can use Notepad, which is usually found in the start menu under Programs in Accessories: If you are not using Windows, you can use a similar simple text editor. For example, Pico (Linux) or TextEdit (Mac). Notepad is a very basic text editing program which is excellent for coding because it does not interfere with what you are typing. It gives you complete control. The problem with many of 2012 Journal for Hypertext Mark-up Language (HTML)
  • 4. Microbold Corporation – Solutions, now loading… the programs that claim they can create websites is that they have a lot of standard functions, which you can choose from. The downside is that, everything needs to fit into these standard functions. Thus, this type of programs often cannot create a website exactly as you want it. Or - even more annoyingly - they make changes to your hand-written code. With Notepad or other simple text editors, you only have yourself to thank for your successes and errors. A browser and Notepad (or similar simple text editors) are all you need to go through this tutorial and make your own websites. Do I need to be online? You do not need to be connected to the Internet - neither while reading the training course material, nor while making your websites. If you want to avoid being online while reading this tutorial, you can either print it out or simply disconnect from the Internet while reading on screen. You can make the website on your computer's hard disk and upload it to the Internet when it is finished. What's next? Go to the next lesson and read about HTML before the fun really starts in the third Lesson (Lesson 3) Nugget 2: What is HTML? This lesson will give you a brief presentation of your new friend, HTML. What is HTML? HTML is the "mother tongue" of your browser. To make a long story short, HTML was invented in 1990 by a scientist called Tim Berners-Lee. The purpose was to make it easier for scientists at different universities to gain access to each other's research documents. The project became a bigger success than Tim Berners-Lee had ever imagined. By inventing HTML he laid the foundation for the web as we know it today. HTML is a language, which makes it possible to present information (e.g. scientific research) on the Internet. What you see when you view a page on the Internet is your browser's interpretation of HTML. To see the HTML code of a page on the internet, simply click "View" in the top menu of your browser and choose "Source". 2012 Journal for Hypertext Mark-up Language (HTML)
  • 5. Microbold Corporation – Solutions, now loading… For the untrained eye, HTML code looks complicated but this tutorial will help you make sense of it all. What can I use HTML for? If you want to make websites, there is no way around HTML. Even if you're using a program to create websites, such as Dreamweaver, a basic knowledge of HTML can make life a lot simpler and your website a lot better. The good news is that HTML is easy to learn and use. In just two lessons from now you will have learned how to make your first website. HTML is used to make websites. It is as simple as that! Okay, but what does H-T-M-L stand for? HTML is an abbreviation for "HyperText Mark-up Language" - which is already more than you need to know at this stage. However, for the sake of good order, let us explain in greater detail. Hyper is the opposite of linear. In the good old days - when a mouse was something the cat chased - computer programs ran linearly: when the program had executed one action it went to the next line and after that, the next line and so on. But HTML is different - you can go wherever you want and whenever you want. For example, it is not necessary to visit Microbold.tk before you visit twibie.tk. Text is self-explanatory. Mark-up is what you do with the text. You are marking up the text the same way you do in a text editing program with headings, bullets and bold text and so on. Language is what HTML is. It uses many English words. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 6. Microbold Corporation – Solutions, now loading… In this tutorial you will learn so-called XHTML (Extensible HyperText Mark-up Language) which, in short, is a new and well-structured way of writing <em>Emphasized HTML. text.</em> Now you know what HTML (and XHTML) stands for let's get started with what it is all about: making websites. Nugget 3: Elements and tags You are now ready to learn the essence of HTML: elements. Elements give structure to a HTML document and tell the browser how you want your website to be presented. Generally elements consist of a start tag, some content, and an end tag. "Tags"? Tags are labels you use to mark up the beginning and end of an element. All tags have the same format: they begin with a less-than sign "<" and end with a greater-than sign ">". Generally speaking, there are two kinds of tags - opening tags: <html> and closing tags: </html>. The only difference between an opening tag and a closing tag is the forward slash "/". You label content by putting it between an opening tag and a closing tag. HTML is all about elements. To learn HTML is to learn and use different tags. Can you show me some examples? Okay, the element “em” emphasis text. All text between the opening tag <em> and the closing tag </em> is emphasized in the browser. ("em" is short for "emphasis".) Example 1: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 7. Microbold Corporation – Solutions, now loading… Will look like this in the browser: Emphasized text. The elements h1, h2, h3, h4, h5 and h6 is used to make headings (h stands for "heading"), where h1 is the first level and normally the largest text, h2 is the second level and normally slightly smaller text, and h6 is the sixth and last in the hierarchy of headings and normally the smallest text. Example 2: <h1>This is a heading</h1> <h2>This is a Will look like this in the browser: subheading</h2> This is a heading This is a subheading So, I always need an opening tag and a closing tag? As they say, there's an exception to every rule and in HTML the exception is that there are a few elements which both open and close in the same tag. These so-called empty elements are not connected to a specific passage in the text but rather are isolated labels, for example, a line break which looks like this: <br />. Should tags be typed in uppercase or lowercase? Most browsers might not care if you type your tags in upper, lower or mixed cases. <HTML>, <html> or <HtMl> will normally give the same result. However, the correct way is to type tags in lowercase. So get into the habit of writing your tags in lowercase. Where do I put all these tags? 2012 Journal for Hypertext Mark-up Language (HTML)
  • 8. Microbold Corporation – Solutions, now loading… You type your tags in an HTML document. A website contains one or more HTML documents. When you surf the Web, you merely open different HTML documents. If you continue to the next lesson in 10 minutes you will have made your first website. Nugget 4: Create your first website With what you learned in the previous lessons, you are now only minutes away from making your first website. How? In Lesson 1 we looked at what is needed to make a website: a browser and Notepad (or similar text editor). Since you are reading this, you most likely already have your browser open. The only thing you need to do is to open an extra browser window (open the browser one more time) so you can read this tutorial and see your new website at the same time. Also, open Notepad (in Accessories under Programs in the Start menu): 2012 Journal for Hypertext Mark-up Language (HTML)
  • 9. Microbold Corporation – Solutions, now loading… Now we are ready! What can I do? Let us start with something simple. How about a page that says: "Hurrah! This is my first website." Read on and you'll find out how simple it is. HTML is simple and logical. The browser reads HTML like you read English: from the top down and from left to right. Thus, a simple HTML document begins with what should come first and ends with what should come last. The first thing you need to do is to tell the browser that you will "talk" to it in the language HTML. This is done with the tag <html> (no surprises there). So before you do anything else type "<html>" in the first line of your document in Notepad. As you may recall from the previous lessons, <html> is an opening tag and must be closed with a closing tag when you are finished typing HTML. So to make sure you don't forget the HTML close tag now type "</html>" a couple of lines down and write the rest of the document between <html> and </html>. The next thing your document needs is a "head", which provides information about your document, and a "body", which is the content of the document. Since HTML is nothing if not logical, the head (<head> and </head>) is on top of the body (<body> and </body>). Your document should now look like this: <html> <head> </head> <body> </body> </html> 2012 Journal for Hypertext Mark-up Language (HTML)
  • 10. Microbold Corporation – Solutions, now loading… Note how we structured the tags with new lines (using the Enter key) as well as indents (using the Tab key). In principle, it does not matter how you structure your HTML document. But to help you, and others reading your coding, to keep an overview, it is strongly recommended that you structure your HTML in a neat way with line breaks and indents, like the above example. If your document looks like the above example, you have made your first website - a particularly boring website and probably not what you dreamt of when you started this tutorial but still some sort of a website. What you have made will be the basic template for all your future HTML documents. So far so good, but how do I add content to my website? As you learnt earlier, your HTML document has two parts: a head and a body. In the head section you write information about the page, while the body contains the information that constitutes the page. For example, if you want to give the page a title which will appear in the top bar of the browser, it should be done in the "head" section. The element used for a title is title. I.e. write the title of the page between the opening tag <title> and the closing tag </title>: <title>My first website</title> Note that this title will not appear on the page itself. Anything you want to appear on the page is content and must therefore be added between the "body" tags. As promised, we want the page to say "Hurrah! This is my first website." This is the text that we want to communicate and it therefore belongs in the body section. So in the body section, type the following: <p>Hurrah! This is my first website.</p> The p in <p> is short for "paragraph" which is exactly what it is - a text paragraph. Your HTML document should now look like this: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 11. Microbold Corporation – Solutions, now loading… <html> <head> <title>My first website </title> </head> <body> <p>Hurrah! This is my website.</p> </body> </html> Done! You have now made your first real website! Next all you have to do is to save it to your hard drive and then open it in your browser: In Notepad choose "Save as..." under "File" in the top menu. Choose "All Files" in the "Save as type" box. This is very important - otherwise, you save it as a text document and not as an HTML document. Now save your document as "page1.htm" (the ending ".htm" indicates that it is an HTML document. ".html" gives the same result. I always use ".htm", but you can choose whichever of the two extensions you prefer). It doesn't matter where you save the document on your hard drive - as long as you remember where you saved it so you can find it again. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 12. Microbold Corporation – Solutions, now loading… Now go to the browser: In the top menu choose "Open" under "File" (or press CTRL+O). Click "Browse" in the box that appears Now find your HTML document and click "Open". It now should say, "Hurrah! This is my first website." in your browser. Congratulations!!! If you absolutely want the whole world to see your masterpiece right away, you can jump to Lesson 13 and learn how to upload your page to the Internet. Otherwise, be patient and read on. The fun has just begun. Nugget 5: What have you learned so far? Always start with the basic template we made in the previous lesson: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 13. Microbold Corporation – Solutions, now loading… <html> <head> <title></title> </head> <body> </body> </html> In the head section, always write a title: <title>The title of your page</title>. Notice how the title will be shown in the upper left corner of your browser: The title is especially important because it is used by search engines (such as Google) to index your website and is shown in the search results. In the body section, you write the actual content of the page. You already know some of the most important elements: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 14. Microbold Corporation – Solutions, now loading… <p>Is used for paragraphs.</p> <em>Emphasis text.</em> <h1>Heading</h1> <h2>Subhead</h2> <h3>Sub- subhead</h3> Remember, the only way to learn HTML is by trial and error. But don't worry, there is no way you can destroy your computer or the Internet. So keep experimenting - that is the best way to gain experience. What is that supposed to mean? Nobody becomes a good website creator by learning the examples in website journals. What you get in this tutorial is simply a basic understanding of the building blocks - to become good you must use the building blocks in new and creative ways. So, get out in the deep water and stand on your own two feet... Okay, maybe not. But give it a go and experiment with what you have learned. So what's next? Try to create a few pages yourself. For instance, make a page with a title, a heading, some text, a subhead and some more text. It is perfectly okay to look in the tutorial while you make your first pages. But later, see if you can do it on your own - without looking. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 15. Microbold Corporation – Solutions, now loading… Nugget 6: A few more elements Did you manage to make a few pages on your own? If not, here is an example: <html> <head> <title>My website</title> </head> <body> <h1>A Heading</h1> <p>text, text text, text</p> <h2>Subhead</h2> <p>text, text text, text</p> </body> </html> Now what? Now it is time to learn seven new elements. In the same way you emphasize the text by putting it between the opening tag <em> and the closing tag </em>, you can give stronger emphasis by using the opening tag <strong> and the closing tag </strong>. Example 1: <strong>Stronger emphasis.</strong> Will look like this in the browser: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 16. Microbold Corporation – Solutions, now loading… Stronger emphasis. Likewise, you can make your text smaller using small: Example 2: <small>This should be in small.</small> Will look like this in the browser: This should be in small. Can I use several elements at the same time? You can easily use several elements at the same time as long as you avoid overlapping elements. This is best illustrated by an example: Example 3: If you want to emphasize small text, it must be done like this: <em><small>Emphasized small text</small></em> And NOT like this: <em><small>Emphasized small text</em></small><em><small>Emphasize small text</em></small> The difference is that in the first example, we closed the tag we first opened last. This way we avoid confusing both ourselves and the browser. More elements! 2012 Journal for Hypertext Mark-up Language (HTML)
  • 17. Microbold Corporation – Solutions, now loading… As mentioned in Lesson 3 there are elements which are opened and closed in the same tag. These so-called empty elements are not connected to a specific passage in the text but rather are isolated labels. An example of such a tag is <br /> which creates a forced line break: Example 4: My name is John Doe<br />I study at Microbold ICT Centre. Will look like this in the browser: My name is John Doe I study at Microbold ICT Centre. Notice that the tag is written as a contraction of an opening and closing tag with an empty space and a forward slash at the end: <br />. Another element that is opened and closed in the same tag is <hr /> which is used to draw a horizontal line ("hr" stands for "horizontal rule"): Example 5: <hr /> Will look like this in the browser: Examples of elements that needs both an opening tag and a closing tag - as most elements do - is ul, ol and li. These elements are used when you want to make lists. ul is short for "unordered list" and inserts bullets for each list item. ol is short for "ordered list" and numbers each list item. To make items in the list use the li tag ("list item"). Confused? See the examples: Example 7: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 18. Microbold Corporation – Solutions, now loading… <ul> <li>A list item</li> <li>Another list item</li> </ul> will look like this in the browser: A list item Another list item Example 8: <ol> <li>First list item</li> <li>Second list item</li> </ol> will look like this in the browser: 1. First list item 2. Second list item 3. Phew! Is that all? That is all for now. Again, experiment and make your own pages using some of the seven new elements you learned in this lesson: <strong>Stronger emphasis</strong> <small>Small text</small> <br /> Line shift <hr /> Horizontal line 2012 Journal for Hypertext Mark-up Language (HTML)
  • 19. Microbold Corporation – Solutions, now loading… <ul>List</ul> <ol>Ordered list</ol> <li>List item</li> Nugget 7: Attributes You can add attributes to a number of elements. What is an attribute? As you probably remember, elements give structure to a HTML document and tells the browser how you want your website to be presented (for example, <br /> informs the browser to make a line break). In some elements you can add more information. Such additional information is called an attribute. Example 1: <h2 style="background-color:#ff0000;">My friendship with HTML</h2> Attributes are always written within a start tag and are followed by an equal’s sign and the attribute details written between inverted commas. The semicolon after the attribute is for separating different style commands. We will get back to that later. What is the catch? There are many different attributes. The first one you will learn is style. With the style attribute you can add layout to your website. For instance a background colour: Example 2: <html> <head> </head> <body style="background-color:#ff0000;"> 2012 Journal for Hypertext Mark-up Language (HTML)
  • 20. Microbold Corporation – Solutions, now loading… </body> </html> will show a completely red page in the browser - go ahead and see for yourself. We will explain in greater detail how the colour system works in a few moments. Note that some tags and attributes use US spelling i.e. color instead of colour. It is important that you are careful to use the same spelling as we use in the examples in this tutorial - otherwise, browsers will not be able to understand your codes. Also, don't forget to always close the inverted commas (quotation marks) after an attribute. How did the page become red? In the above example, we asked for the background colour with the code "#ff0000". This is the colour code for red using so called hexadecimal numbers (HEX). Each colour has its own hexadecimal number. Here are some examples: White: #ffffff Black: #000000 (zeros) Red: #ff0000 Blue: #0000ff Green: #00ff00 Yellow: #ffff00 A hexadecimal colour code consists of # and six digits or letters. There are more than 1000 HEX codes and it is not easy to figure out which HEX code is tied to a specific colour. To make it easier we have made a chart of the 216 most commonly used colours. You can also use the English name for the most common colours (white, black, red, blue, green and yellow). Example 3: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 21. Microbold Corporation – Solutions, now loading… <body style="background-color: red;"> That should do for colors right now. Let's get back to the attributes. Which elements can use attributes? Different attributes can be applied to most elements. You will often use attributes in tags such as the body tag while you will rarely use attributes in, for example, a br tag since a line break normally is a line break without any parameters to adjust. Just as there are many different elements, so there are many different attributes. Some attributes are tailor made for one particular element while others can be used for many different elements. And vice versa: some elements can only contain one kind of attribute while others can contain many. It may sound a bit confusing but once you get acquainted with the different attributes it is actually very logical and you will soon see how easy they are to use and how many possibilities they provide. This tutorial will introduce you to the most important attributes. Exactly what parts does an element consist of? Generally an element consists of a start tag with or without one or more attributes, some content and an end tag. Simple as that. See the illustration below. Nugget 8: Links In this lesson, you will learn how to make links between pages. What do I need to make a link? To make links, you use what you always use when coding HTML: an element. A simple element with one attribute and you will be able to link to anything and everything. Here is an example of what a link to HTML.net could look like: Example 1: <a href="http://www.microbold.tk/">Here is a link to Microbold</a> Would look like this in the browser: Here is a link to Microbold 2012 Journal for Hypertext Mark-up Language (HTML)
  • 22. Microbold Corporation – Solutions, now loading… The element a stands for "anchor". And the attribute href is short for "hypertext reference", which specifies where the link leads to - typically an address on the internet or a file name. In the above example the attribute href has the value "http://www.microbold.tk", which is the full address of Microbold and is called a URL (Uniform Resource Locator). Note that "http://" must always be included in URLs. The sentence "Here is a link to Microbold" is the text that is shown in the browser as the link. Remember to close the element with an </a>. What about links between my own pages? If you want to make a link between pages on the same website, you do not need to spell out the entire address (URL) for the document. For example, if you have made two pages (let us call them page1.htm and page2.htm) and saved them in the same folder you can make a link from one page to the other by only typing the name of the file in the link. Under such circumstances a link from page1.htm to page2.htm could look like this: Example 2: <a href="page2.htm">Click here to go to page 2</a> If page 2 were placed in a subfolder (named "subfolder"), the link could look like this: Example 3: <a href="subfolder/page2.htm">Click here to go to page 2</a> The other way around, a link from page 2 (in the subfolder) to page 1 would look like this: Example 4: <a href="../page1.htm">A link to page 1</a> "../" points to the folder one level up from position of the file from which the link is made. Following the same system, you can also point two (or more) folders up by writing "../../". Did you understand the system? Alternatively, you can always type the complete address for the file (URL). 2012 Journal for Hypertext Mark-up Language (HTML)
  • 23. Microbold Corporation – Solutions, now loading… What about internal links within a page? You can also create internal links within a page - for example a table of contents at the top with links to each chapter below. All you need to use is a very useful attribute called id (identification) and the symbol "#". Use the id attribute to mark the element to which you want to link. For example: <h1 id="heading1">heading 1</h1> You can now create a link to that element by using "#" in the link attribute. The "#" must be followed by the id of the tag you want to link to. For example: <a href="#heading1">Link to heading 1</a> All will become clear with an example: Example 5: <html> <head> </head> <body> <p><a href="#heading1">Link to heading 1</a></p> <p><a href="#heading2">Link to heading 2</a></p> <h1 id="heading1">heading 1</h1> <p>Text text text text</p> <h1 id="heading2">heading 2</h1> 2012 Journal for Hypertext Mark-up Language (HTML)
  • 24. Microbold Corporation – Solutions, now loading… <p>Text text text text</p> </body> </html> will look like this in the browser (click on the two links): Link to heading 1 Link to heading 2 Heading 1 Text text text text Heading 2 Text text text text (Note: An id attribute must start with a letter) Can I link to anything else? You can also make a link to an e-mail address. It is done in almost the same way as when you link to a document: Example 6: <a href="mailto:microbold@ovi.com">Send an e-mail to Microbold</a> will look like this in the browser: Send an e-mail to nobody at Microbold The only difference between a link to an e-mail and a link to a file is that instead of typing the address of a document, you type mailto: followed by an e-mail address. When the link is clicked, the default e-mail program opens with a new blank message addressed to the specified 2012 Journal for Hypertext Mark-up Language (HTML)
  • 25. Microbold Corporation – Solutions, now loading… e-mail address. Please note that this function will only work if there is an e-mail program installed on your computer. Give it a try! Are there any other attributes I should know of? To create a link, you always have to use the href attribute. In addition, you can also put a title on your link: Example 7: <a href="http://www.microbold.tk/" title="Visit Microbold today and learn HTML">Microbold HTML Tutorials</a> Would look like this in the browser: Microbold HTML Tutorials (Title cannot be shown here. Visit the tutorials page HERE to view) The title attribute is used to type a short description of the link. If you - without clicking - place the cursor over the link, you will see the text "Visit HTML.net and learn HTML" appears. Nugget 9: Images Wouldn't it be great if you could have an image of Steve Jobs, one of the greatest innovators of our time (not until he died) right in the centre of your page? That sounds like a bit of a challenge... Maybe, but in fact it is pretty easy to do. All you need is an element: Example 1: <img src="steve jobs.jpg" alt="Steve Jobs" /> would look like this in the browser: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 26. Microbold Corporation – Solutions, now loading… All you need do is first tell the browser that you want to insert an image (img) and then where it is located (src, short for "source"). Do you get the picture? Notice how the img element is opened and closed using the same tag. Like the <br /> tag, it is not tied to a piece of text. "steve jobs.jpg" is the name of the image file you want to insert in your page. ".jpg" is the file type of the image. Just like the extension ".htm" shows that a file is an HTML document, ".jpg" tells the browser that a file is a picture. There are three different types of image file types you can insert into your pages: GIF (Graphics Interchange Format) JPG / JPEG (Joint Photographic Experts Group) PNG (Portable Network Graphics) GIF images are usually best for graphics and drawings, while JPEG images are usually better for photographs. This is for two reasons: first, GIF images only consist of 256 colours, while JPEG images comprise of millions of colours and second, the GIF format is better at compressing simple images, than the JPEG format which is optimized for more complex images. The better the compression, the smaller the size of the image file, the faster your page will load. As you probably know from your own experience, unnecessarily 'heavy' pages can be extremely annoying for the user. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 27. Microbold Corporation – Solutions, now loading… Traditionally, the GIF and JPEG formats have been the two dominant image types, but lately, the PNG format has become more and more popular (primarily at the expense of the GIF format). The PNG format contains in many ways the best of both the JPEG and GIF format: millions of colours and effective compressing. Where do I get my images from? To make your own images, you need an image editing program. An image editing program is one of the most essential tools you need to create beautiful websites. Unfortunately, no good image editing programs comes with Windows or other operating systems. Thus, you might consider investing in Paint Shop Pro, PhotoShop or Macromedia Fireworks, which are three of the best image editing programs currently on the market. However, as we said before, it will not be necessary to buy expensive programs to complete this tutorial. For now, you can download the excellent image editing program IrfanView which is so-called freeware and therefore costs nothing. Or you can just borrow images from other sites by downloading them. But please be careful not to violate copyrights when downloading pictures. Still, it's useful to know how to download pictures, so here's how you do it: 1. Right-click on an image on any image on the Internet. 2. Choose "Save picture as..." in the menu that appears. 3. Choose a location for the image on your computer and press "Save". Do this with the image below and save it on your computer at the same location as your HTML documents. (This can only be done in your browser. Visit the Tutorial to view it): Now you can insert the image into one of your own pages. Try it yourself. Is that all I need to know about images? There are a few more things you should know about images. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 28. Microbold Corporation – Solutions, now loading… First, you can easily insert pictures located in other folders, or even pictures that are located on other websites: Example 2: <img src="images/logo.png" /> Example 3: <img src="http://www.html.net/logo.png" /> Second, images can be links: Example 4: <a href="http://www.html.net"> <img src="logo.png" /></a> will look like this in the browser (try clicking on the image): Are there any other attributes I should know about? You always need to use the attribute src, which tells the browser where the image is located. Besides that, there are a number of other attributes which can be useful when inserting images. The alt attribute is used to give an alternate description of an image if, for some reason, the image is not shown for the user. This is especially important for users with impaired vision, or if the page is loaded very slowly. Therefore, always use the alt attribute: Example 5: <img src="logo.gif" alt="Microbold and Nigeria Book Foundation Logo" /> 2012 Journal for Hypertext Mark-up Language (HTML)
  • 29. Microbold Corporation – Solutions, now loading… Some browsers let the text of the alt attribute appear as a small pop-up box when the user places their cursor over the picture. Please note that when using the alt attribute, the aim is to provide an alternative description of the picture. The alt attribute should not be used to create special pop-up messages for the user since then visually impaired users will hear the message without knowing what the picture is. The title attribute can be used to add information to the image: Example 6: <img src="logo.gif" title="Get Proficient With Microbold" /> Will look like this in the browser: If you, without clicking, place the cursor over the image, you will see the text " Get Proficient With Microbold" appear as a pop-up box. Two other important attributes are width and height: Example 7: <img src="logo.png" width="141px" height="32px" /> will look like this in the browser: (Dimension not accurate here view in tutorial) The width and height attributes can be used to set the height and width of an image. The value that is used to set the width and height is pixels. Pixels are the units of measurement used to measure the resolution of screens. (The most common screen resolution is 1024x768 pixels). 2012 Journal for Hypertext Mark-up Language (HTML)
  • 30. Microbold Corporation – Solutions, now loading… Unlike centimetres, pixels are relative units of measurement which depend on the resolution of the screen. To a user with a high screen resolution, 25 pixels may correspond to 1 centimetre, while the same 25 pixel in a low screen resolution may correspond to 1.5 centimetres on the screen. If you do not set the width and height, the image will be inserted in its actual size. But with width and height you can manipulate the size: Example 8: <img src="logo.gif" width="32px" height="32px" /> will look like this in the browser: (Dimension not accurate here view in tutorial) However, it is worth keeping in mind that the actual size in kilobytes of the image file will remain the same so it will take the same time to load the image as it did before, even though it appears smaller on the screen. Therefore, you should never decrease the image size by using the width and height attributes. Instead, you should always resize your images in an image editing program to make your pages lighter and faster. That said, it is still a good idea to use the width and height attributes because the browser will then be able to detect how much space the image will need in the final page layout before the image is fully downloaded. This allows your browser to set up the page nicely in a quicker way. That's enough about Steve Jobs and images for now. Nugget 10: Tables Tables are used when you need to show "tabular data" i.e. information that is logically presented in rows and columns. Is it difficult? 2012 Journal for Hypertext Mark-up Language (HTML)
  • 31. Microbold Corporation – Solutions, now loading… Building tables in HTML may at first seem complicated but if you keep cool and watch your step, it is actually strictly logical - just like everything else in HTML. Example 1: <table> <tr> <td>Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> </tr> </table> Will look like this in the browser: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 32. Microbold Corporation – Solutions, now loading… Cell 1 Cell 2 Cell 3 Cell 4 What's the difference between <tr> and <td>? As you will see from the above example, this is probably the most complicated HTML example we have given you so far. Let's break it down and explain the different tags: 3 different elements are used to insert tables: The opening tag <table> and the closing tag </table> starts and ends the table. Logical. <tr> stands for "table row" and starts and ends horizontal rows. Still logical. <td> is short for "table data". This tag starts and ends each cell in the rows of your table. All simple and logical. Here is what happens in Example 1: the table starts with a <table>, followed by a <tr>, which indicates the beginning of a new row. Two cells are inserted in this row: <td>Cell 1</td> and <td>Cell 2</td>. The row is hereafter closed with a </tr> and a new row <tr> begins immediately after. The new row also contains two cells. The table is closed with </table>. Just to make it clear: rows are horizontal lines of cells and columns are vertical lines of cells: Cell 1 Cell 2 Cell 3 Cell 4 Cell 1 and Cell 2 form a row. Cell 1 and Cell 3 form a column. In the above example, the table has two rows and two columns. However, a table can have an unlimited number of rows and columns. Example 2: <table> 2012 Journal for Hypertext Mark-up Language (HTML)
  • 33. Microbold Corporation – Solutions, now loading… <tr> <td>Cell 1</td> <td>Cell 2</td> <td>Cell 3</td> <td>Cell 4</td> </tr> <tr> <td>Cell 5</td> <td>Cell 6</td> <td>Cell 7</td> <td>Cell 8</td> </tr> <tr> <td>Cell 9</td> <td>Cell 10</td> <td>Cell 11</td> <td>Cell 12</td> </tr> </table> Will look like this in the browser: Cell 1 Cell 2 Cell 3 Cell 4 Cell 5 Cell 6 Cell 7 Cell 8 Cell 9 Cell 10 Cell 11 Cell 12 2012 Journal for Hypertext Mark-up Language (HTML)
  • 34. Microbold Corporation – Solutions, now loading… Are there any attributes? Of course there are attributes. For example, the border attribute is used to specify the thickness of the border around your table: Example 3: <table border="1"> <tr> <td>Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> </tr> </table> Will look like this in the browser: Cell 1 Cell 2 Cell 3 Cell 4 The thickness of the border is specified in pixels (See nugget 9) As with images, you can also set the width of a table in pixels - or alternatively in percentage of the screen: Example 4: <table border="1" width="30%"> 2012 Journal for Hypertext Mark-up Language (HTML)
  • 35. Microbold Corporation – Solutions, now loading… This example will be displayed in the browser as a table with the width of 30% of the screen. Try it yourself. More attributes? There are lots of attributes for tables. Here are two more: align: specifies the horizontal alignment of the content in the entire table, in a row or in a single cell. For example, left, center or right. valign: specifies the vertical alignment of the content in a cell. For example, top, middle or bottom. Example 5: <td align="right" valign="top">Cell 1</td> What can I insert in my tables? Theoretically, you can insert anything in tables: text, links and images... BUT tables are meant for presenting tabular data (i.e. data which can be meaningfully presented in columns and rows) so refrain from putting things into tables simply because you want them to be placed next to each other. In the old days on the Internet - i.e. a few years ago - tables were often used as a layout tool. But if you want to control the presentation of texts and images there is a much cooler way to do it (hint: CSS). But that would be much later. Now, put what you just learned to practice and design a number of tables in different sizes, with different attributes and content. This should keep you busy for hours. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 36. Microbold Corporation – Solutions, now loading… Nugget 11: More about tables The title "More about tables" may sound a bit boring. But look at the positive side, when you master tables, there is absolutely nothing about HTML that will knock you out. What is left then? The two attributes colspan and rowspan are used when you want to create fancy tables. Colspan is short for "column span". Colspan is used in the <td> tag to specify how many columns the cell should span: Example 1: <table border="1"> <tr> <td colspan="3">Cell 1</td> </tr> <tr> <td>Cell 2</td> <td>Cell 3</td> <td>Cell 4</td> </tr> </table> Will look like this in the browser: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 37. Microbold Corporation – Solutions, now loading… Cell 1 Cell 2 Cell3 Cell 4 By setting colspan to "3", the cell in the first row spans three columns. If we instead had set colspan to "2", the cell would only have spanned two columns and it would have been necessary to insert an additional cell in the first row so that the number of columns will fit in the two rows. Example 2: <table border="1"> <tr> <td colspan="2">Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> <td>Cell 4</td> <td>Cell 5</td> </tr> </table> Will look like this in the browser: Cell 1 Cell 2 Cell 3 Cell 4 Cell 5 2012 Journal for Hypertext Mark-up Language (HTML)
  • 38. Microbold Corporation – Solutions, now loading… What about rowspan? As you might already have guessed, rowspan specifies how many rows a cell should span over: Example 3: <table border="1"> <tr> <td rowspan="3">Cell 1</td> <td>Cell 2</td> </tr> <tr> <td>Cell 3</td> </tr> <tr> <td>Cell 4</td> </tr> </table> Will look like this in the browser: Cell 1 Cell 2 Cell 3 Cell 4 In the example above rowspan is set to "3" in Cell 1. This specifies that the cell must span over 3 rows (its own row plus an additional two). Cell 1 and Cell 2 are thereby in the same row, while Cell 3 and Cell 4 form two independent rows. Confused? Well, it is not uncomplicated and it is easy to lose track. Therefore, it might be a good idea to draw the table on a piece of paper before you begin with the HTML. Not confused? Then go ahead and create a couple of tables with both colspan and rowspan on your own. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 39. Microbold Corporation – Solutions, now loading… Nugget 12: Layout (CSS) Wouldn't it be great if you could give your pages the layout they deserve? Sure, but how? To give your website layout use Cascading Style Sheets (CSS). In this lesson you will get a short introduction to CSS. But later you can learn all about CSS from scratch in our CSS tutorial. So please consider this lesson only as an appetizer. CSS is the better half of HTML. And in coding, there is no equality of status: HTML takes care of the rough stuff (the structure), while CSS gives it a nice touch (layout). As shown in Lesson 7, CSS can be added with the style attribute. For example, you can set the font type and size on a paragraph: Example 1: <p style="font-size:20px;">This is typed in size 20px</p> <p style="font-family:courier;">This is typed in Courier</p> <p style="font-size:20px; font-family:courier;">This is typed in Courier size 20px</p> Will look like this in the browser: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 40. Microbold Corporation – Solutions, now loading… This is typed in size 20px This is typed in Courier This is typed in Courier size 20px In the example above we use the style attribute to specify the type of font to be used (with the command font-family) and the font size (with the command font-size). Notice how in the last paragraph we set both the font type and size with a separating semicolon. It seems like a lot of work? One of the smart features of CSS is the possibility to manage your layout centrally. Instead of using the style attribute in each tag, you can tell the browser once how it must layout all the text on the page: Example 2: <html> <head> <title>My first CSS page</title> <style type="text/css"> h1 {font-size: 30px; font-family: arial;} h2 {font-size: 15px; font-family: courier;} p {font-size: 8px; font-family: "times new roman";} </style> </head> <body> 2012 Journal for Hypertext Mark-up Language (HTML)
  • 41. Microbold Corporation – Solutions, now loading… <h1>My first CSS page</h1> <h2>Welcome to my first CSS page</h2> <p>Here you can see how CSS works </p> </body> </html> Show example>> In the example above CSS has been inserted in the head section and therefore applies to the entire page. To do this, just use the tag <style type="text/css"> which tells the browser that you are typing CSS. In the example all headings on the page will be in Arial in size 30px. All subheads will in Courier size 15. And all text in normal paragraphs will be in Times New Roman size 8. Another option is to type the CSS in a separate document. With a separate CSS document you can manage the layout of many pages all at once. Pretty smart if you want to change the font type or size on a large website with hundreds or thousands of pages. We won't go into that now but you can learn it later in our CSS tutorial. What else can I do with CSS? CSS can be used for much more than specifying font types and sizes. For example, you can add colours and backgrounds. Here are some examples for you to experiment with: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 42. Microbold Corporation – Solutions, now loading… <p style="color:green;">Green text</p> Microbold Summer ICT Classes for the year. <h1 style="background-color: blue;">Heading on blue background</h1> JavaScript <body style="background-image: HTML PHP url('http://www.html.net/logo.png');"> Visual Basic File Processing Try inserting the examples in some of your pages - both as Basic shown above and also as CSS inserted in the head section. Networking Computer Appreciation Is CSS nothing but colours and font types? Besides adding layout such as colors, font types etc., CSS can also be used to control the page setup and presentation (margins, float, alignment, width, height etc.). By regulating the different elements with CSS you are able to layout your pages elegantly and precisely. Example 3: <p style="padding:25px;border:1px solid red;">I love CSS</p> Will look like this in the browser: I love CSS With the property float an element can either be floated to the right or to the left. The following example illustrates the principle: Example 4: 2012 Journal for Hypertext Mark-up Language (HTML)
  • 43. Microbold Corporation – Solutions, now loading… <img src="studyhub.jpg" alt="Study Hub logo" style= "float:left;" /> <p>Study Hub™ is an educational resource for students of all level. It serves as a guide and companion towards achieving success. Adequate information is contained in its well structured knowledge base in order to give you the right information at all times. </p> Will look like this in the browser: Study Hub™ is an educational resource for students of all level. It serves as a guide and companion towards achieving success. Adequate information is contained in its well structured knowledge base in order to give you the right information at all times. In the example, one element (the image) floats to the left and the other element (the text) fills the hole. With the property position, you can place an element exactly where you want it in your page: Example 5: <img src="bill.jpg" alt="Bill Gates" style="position:absolute;bottom:50px;right:10px;" /> Show example>> In the example the image is placed 50 pixels from the bottom and 10 pixels from the right in the browser. But you can place it exactly where you want it. Give it a try. Pretty easy and pretty cool, eh? Cool, sure. But easy? 2012 Journal for Hypertext Mark-up Language (HTML)
  • 44. Microbold Corporation – Solutions, now loading… You do not learn CSS in 10 minutes. And as mentioned above, this lesson is only meant as a brief introduction. Later you will learn much more in our CSS Tutorial. For now, concentrate on HTML, and move on to the next lesson where you will learn how to get your website out on the Internet so the whole world can see it! Nugget 13: Uploading pages Until now, only you have had the satisfaction of viewing your pages. Now it is time for the rest of the world to see your masterpieces. Is the world ready for that? The world is ready - you soon will be too. To get your website on the internet, you just need some server space and a free FTP program. If you have Internet access, you might already have some free server space for your website. Your server space will then probably be called something like http://home.provider.com/~usernumber. But you might need to activate it first. Read more about this in the papers from your Internet provider or on their support pages. Another option is to get some free server space on the Internet. In the same way that you set up an e-mail account (at for example yahoomail), you can register for free server space on the Internet. Several companies offer such a service - among them 000webhost.com (click "Order Now" under "Free Hosting") - it will only take a couple of minutes to register. To have access to the server, you need to know the "Host Name" (For example, ftp.htmlnet.site50.net) and have your username and password ready. Is that all I need? To access the server and upload your pages, you also need an FTP program. FTP is short for File Transfer Protocol. A FTP program is used to connect two computers over the Internet so that you can transfer files from your computer to another computer (the server). You might not have such a program yet, but fortunately, this can be downloaded for free. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 45. Microbold Corporation – Solutions, now loading… There are many different FTP programs. One of the better is FileZilla, which is entirely free. So now you can download FileZilla at filezilla.sourceforge.net. And how do I upload the pages? Described below is how you upload your pages to a free account at 000webhost.com with FileZilla. But the procedure is, more or less, the same for all providers and FTP programs. Open the FTP program while connected to the Internet. Insert "Host Name" ("ftp.htmlnet.site50.net" under "Address"), username (under "User") and password (under "Password") and click "Connect". You should now have access to the server. In one side of the program you can see the contents of your computer ("Local Site"), and in the other side, you can see the content of the server ("Remote Site"): Find your HTML documents and images on your computer (on the "Local site") and transfer them to the server (the "Remote site") by double clicking on them. Now the whole world can see them (For example http://james2012.site50.net/page1.htm)! Name one of the pages "index.htm" (or "index.html") and it will automatically become the start page. I.e. if you type http://james2012.site50.net (without any filename) you will actually open http://james2012.site50.net/index.htm. 2012 Journal for Hypertext Mark-up Language (HTML)
  • 46. Microbold Corporation – Solutions, now loading… In the long run, it might be a good idea to purchase your own domain (for example www.your- name.com or www.your-name.net) and avoid the long and complicated addresses you are being assigned by your Internet provider or from providers of free server space. You can find and purchase domains at for example Speednames or NetworkSolutions. 2012 Journal for Hypertext Mark-up Language (HTML)