Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
**[TUT] Basic HTML (Guide 1)**
#1
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
  • 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:
    Code:
    <b>Test Text</b>
    This will create this - Test Text

  • 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:
    Code:
    <u>Test Text</u>
    This will create this - Test Text

  • Making Text Italic
    To create italic text we must follow the same rules as before, like so:
    Code:
    <i>Test Text</i>
    This will create this - Test Text

  • 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:
    Code:
    <strike>Test Text</strike>
    This will create this - Test Text

    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:
    Code:
    <h1>Test Text</h1>
    <h2>Test Text</h2>
    <h3>Test Text</h3>
    <h4>Test Text</h4>
    <h5>Test Text</h5>
    This will create this -
    [Image: i6muc8.jpg]

    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:
    Code:
    <p>
    Test Text 1<br />
    Test Text 2<br />
    Test Text 3<br />
    </p>
    The <br /> in the code makes the line break. The <p> stand for the paragraph.
    This will create this -
    [Image: wtab95.jpg]

    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:
    Code:
    <font color="FF0000">Test Text</font>
    This will create this - Text Text


  • 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:
    Code:
    <big>Test Text</big>
    <small>Test Text</small>
    <font size="5">Test Text</font>
    You can replace the number in the last code snippet to edit the size.
    This will create this -
    [Image: 51i1j.jpg]

    Images & Resizing

  • Adding Images Basic
    We can add images in HTML using a simple code:
    Code:
    <img src="http://www.supportforums.net/images/avatars/Officials/major.png">
    This will add any image you wish at whatever size it is.
    This will create this -
    [Image: esq3as.jpg]


  • Adding Images - Resizing
    We can resize the images to fit a certain part of a website. We do this by adding this code:
    Code:
    <img src="http://www.supportforums.net/images/avatars/Officials/major.png" width="50" height="50">
    You can replace the numbers to edit the width and size (pixels)
    This will create this -
    [Image: sw92dg.jpg]

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.
Reply


Messages In This Thread
**[TUT] Basic HTML (Guide 1)** - by Sam - 04-24-2010, 05:32 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Tierney - 04-24-2010, 05:36 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Sam - 04-24-2010, 05:38 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Elektrisk - 04-24-2010, 05:51 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Sam - 04-24-2010, 06:50 AM
RE: **[TUT] Basic HTML (Guide 1)** - by ndee - 04-24-2010, 07:32 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Sam - 04-24-2010, 07:33 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Streeeam - 04-24-2010, 08:29 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Sam - 04-24-2010, 08:57 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Streeeam - 04-24-2010, 07:49 PM
RE: **[TUT] Basic HTML (Guide 1)** - by Sam - 04-24-2010, 08:09 PM
RE: **[TUT] Basic HTML (Guide 1)** - by iPlay - 05-01-2010, 12:24 PM
RE: **[TUT] Basic HTML (Guide 1)** - by Rozzy - 05-04-2010, 09:41 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Rozzy - 05-04-2010, 11:13 AM
RE: **[TUT] Basic HTML (Guide 1)** - by Pk3r_Pjer - 05-06-2010, 12:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Contact form for HTML Crystal 36 8,565 05-24-2013, 05:51 PM
Last Post: Akai
  Helping with HTML and CSS Ambitious 0 550 08-28-2011, 01:18 PM
Last Post: Ambitious
  [TUT] Contact Form using HTML/PHP Captain Straight Edge 29 5,565 08-17-2011, 09:49 AM
Last Post: -Infectious
  [TUT]Learn to edit and make pics in HTML. SVG coding language. Easy to learn! [TUT] Qua 2 1,220 06-24-2011, 09:42 PM
Last Post: Qua
  Anyone have any free HTML resources? Scalise 7 1,272 06-01-2011, 04:00 AM
Last Post: !LoL

Forum Jump:


Users browsing this thread: 2 Guest(s)