04-24-2010, 05:32 AM
Hello there fellow SF users this is going to be a start in my HTML guide series. Today I will be going through Basic HTML Format The following sub-topics are going to be covered in this first guide:
Basic Text Tags
This brings a close to my first HTML guide. My next guide will be number 2 which will include starting to customize backgrounds with colours and images, also the addition of lists and basic forms to communicate with a web server.
Thanks for reading.
Notes: This guide belongs to me and I prohibited posting this elsewhere without 100% credit to me and a link to my SF profile.
- Basic text tags
- Headings, line breaks, paragraphs etc...
- Font size & colour
- Basic image adding, including resizing
Basic Text Tags
- Making text bold
In-order to make text bold we will have to add the following tags before and after the passage of text:
This will create this - Test TextCode:<b>Test Text</b>
- Making Text Underlined
To create underlined text we have to follow the same rule; we must add tags before and after the selected text we wish to be underlined. Like so:
This will create this - Test TextCode:<u>Test Text</u>
- Making Text Italic
To create italic text we must follow the same rules as before, like so:
This will create this - Test TextCode:<i>Test Text</i>
- Make text stuck out
Again we are going to follow the same rules but we are going to change the content inside of the tags this time:
This will create this - Test TextCode:<strike>Test Text</strike>
Headings
HTML allows us to create different sized headings using simple tags. There are five different heights of heading; five being the smallest and one being the biggest. To create a heading you must use the tags:
This will create this -Code:<h1>Test Text</h1>
<h2>Test Text</h2>
<h3>Test Text</h3>
<h4>Test Text</h4>
<h5>Test Text</h5>
Line Breaks
In HTML we use line breaks to separate sections of text. This is the equivalent of pressing enter in a word processor. If we want to make some text in a paragraph format with line breaks then we can use this code:
The <br /> in the code makes the line break. The <p> stand for the paragraph.Code:<p>
Test Text 1<br />
Test Text 2<br />
Test Text 3<br />
</p>
This will create this -
Font Colour & Size
- Changing Font Colour
Changing your font colour is a really nice touch to add to your HTML page. In-order to choose your colours you need to visit this site. You should notice that each colour has a number code inside it. This is the code that will define the colour of the selected text. You should use the code like this:
This will create this - Text TextCode:<font color="FF0000">Test Text</font>
- Changing Text Size
With have already seen that we can change the size by using the heading codes. This is a good way if those sizes work for you. However if you want a more specific size then you can use a few commands like these:
You can replace the number in the last code snippet to edit the size.Code:<big>Test Text</big>
<small>Test Text</small>
<font size="5">Test Text</font>
This will create this -
Images & Resizing
- Adding Images Basic
We can add images in HTML using a simple code:
This will add any image you wish at whatever size it is.Code:<img src="http://www.supportforums.net/images/avatars/Officials/major.png">
This will create this -
- Adding Images - Resizing
We can resize the images to fit a certain part of a website. We do this by adding this code:
You can replace the numbers to edit the width and size (pixels)Code:<img src="http://www.supportforums.net/images/avatars/Officials/major.png" width="50" height="50">
This will create this -
This brings a close to my first HTML guide. My next guide will be number 2 which will include starting to customize backgrounds with colours and images, also the addition of lists and basic forms to communicate with a web server.
Thanks for reading.
Notes: This guide belongs to me and I prohibited posting this elsewhere without 100% credit to me and a link to my SF profile.