Part 2 - Adding some Content

Jul 10, 2001 - © Tracy Ryan


or


or


Left alignment is the browser default, so you can leave that tag out if you wish to have left aligned text, or you can include it if you feel it is more "complete" to do so. There is also no need to use the

for the first paragraph on your page.

So if you wished to have two paragraphs of text on your page that were left aligned, your BODY would look like this:


This is our first paragraph.

This is our second paragraph



The text on our page would appear as:

This is our first paragraph.

This is our second paragraph.

This will leave a full line space between each sentence. To have no line space between sentences you would use the
tag. As a side note, this is one tag in HTML that does not need a closing partner. ie, there is no
tag.

So we could have our body as:


This is our first sentence.

This is our second sentence.

And our text would look appear as follows:

This is our first sentence.
This is our second sentence.

We'll tackle some more advanced text formatting in the next article, including hyperlinks. For now let's move on to adding a picture to our page, just to make it more interesting to look at!

The basic tag for adding a picture to your web page is as follows:

So if you had a photo of yourself to add to your page, it might be called "myphoto.jpg" and your tag would look like:

One thing to remember when adding pictures to your site is that you need to have the image in the same directory as your html file OR you need to specify where it is. Some people choose to create a sub-directory called IMAGES or something similar. If you do this, you must specify that in your image tag.

Or if the image is stored on another website somewhere you must specify the full URL.

Please note that it's bad net etiquette to link to images on another person's server without first gaining their permission, so if you see a picture you'd like to use on your site you should save it to your own space to use from there. You should also make sure the picture is available for use as many are copyrighted.

Putting together everything we've learned

The copyright of the article Part 2 - Adding some Content in Website Creation is owned by Tracy Ryan. Permission to republish Part 2 - Adding some Content in print or online must be granted by the author in writing.

Go To Page: 1 2 3

Articles in this Topic    Discussions in this Topic