Headline, lists and image tips


Previous columns have discussed how to change the size of text by using the FONT command. For example:

<FONT size="5"> Text here </FONT>

You can achieve the same result using 'heading' tags while also reducing the amount you need to type. There are six heading tags - <H1> to <H6> - the first being the largest. It is used as follows:

<H3> Text here </H3>

The text contained by the opening and closing heading tag will take on the size associated with the tag. Additionally, the browser will incorporate a paragraph space before and after your tagged text. Using heading tags is not only a lot quicker than the FONT command, but it is also easier to maintain uniformity because of the ease of recalling previous settings.

Lists allow you to replicate the familiar look of bullets and numbering as used in word processors. There are two types of lists in HTML: ordered and unordered. In ordered lists, the items are automatically preceded with a number; unordered lists replace the digit with a bullet point. An example of an ordered list and its coding is as follows:


So far you have learned:

   1. Formatting
   2. Images
   3. Links


So far you have learned:

<OL> tells the browser that an ordered list has begun, and that every list item is to be sequentially numbered. The browser automatically places a space equivalent to a <P> before the list begins. Additionally, the list is indented to the <BLOCKQUOTE> position, and a routine space is inserted between the number and the item.

<LI> indicates each separate List Item. These are individually closed off, as is the <OL> once the list is completed. If you replace the <OL> with a <UL>, indicating unordered list, then the numbers will be replaced with a bullet point •.


In previous columns we have looked at inserting images into your Web pages. We shall now expand upon that and discuss some trade secrets with regards to images and how to enhance them on your site.

Images on the Internet

If you want to work with a graphic that is already on the Internet, hover your mouse over the image and right-click your mouse. You will then see a menu that allows you to do several things, the most popular being to save the image onto your own computer with the "Save Picture As" option. By selecting this, you can place the image anywhere on your PC for future use. You must be careful to save only images that are legally available.

When right-clicking on an image, you can also access information about the image such as width, height, file size and type: simply choose the Properties option.

Image Properties

You can insert an image into your Web page with the following code (assuming the graphic is in the same folder as your HTML file):

<IMG src="picture.gif" alt="This is a picture">

There are additional properties you should always include: width and height. By attaching these attributes to your image, you can force the browser to change the graphic to specified dimensions. Although this can be handy, if you really want an image to be a different size you should instead recreate it in a graphics program; every time the browser remasters a graphic, it takes more time for the page to load.

Even if you want to insert the graphic with its default size, you need to specify in your coding what this is. Graphics are generally slower to load than text, therefore if you don't reserve this space for your image to occupy, you may find that your text and images overlap upon loading.

Supplementary properties that may be included are hspace and vspace. By using these, you can insert horizontal and vertical buffer space around your images. Lastly, you can also align your image by including the appropriate code. An example of how to apply these tags follows:

<IMG src="picture.gif" alt="Picture here" width="200" height="150" vspace="5" hspace="5" align="right">

Join the newsletter!


Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Heidi Woof

PC World
Show Comments

Brand Post

Most Popular Reviews

Latest Articles


PCW Evaluation Team

Luke Hill


I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?