Change background image
  1. What's up? I see you're viewing as a Guest. How about registering, it only takes like 2 minutes. This will enable you to do more on our forum and stay updated.

Basics of html

Discussion in 'PC General' started by Nuke547, Jun 30, 2011.

Thread Status:
This thread is more than 180 days old.
  1. Nuke547

    Nuke547 Junior Member Member

    Sorry this in the php section, but there is no html section

    This topic will teach you the basics of html.

    The first thing about html, is starting it off. The way you start it off is like this:

    Code:
    <html>
    <body>
    
    </body>
    </html>
    
    Anytime you have an open carrot "<", that is representing that you are starting a new tag. In this case, you are starting the html tag, and body tag.
    Anytime you wish to end a tag, you put the "/" before any of the text in the open carrot.

    The first thing to know, is how to change the background color of the page.

    You would do this by typing this code:

    Code:
    <body bgcolor = #000000 >
    
    This should make the the background color black.
    bg stands for background, and you are putting it in the body tag, because anything from then on, is part of the body.

    To change the background to an image, you would use this code:

    Code:
    <body background="http://newhax.com/images/suntzu_nhx_av.png">
    That should make the background repeat the picture.
    In future tutorials, I will teach you how to make it not repeat.

    To make a hyperlink, you would do:

    Code:
    <a href="http://newhax.com/">This is my link!</a>
    
    When making a link, you must always add "http://" to the beginning of it, and "/" to the end of it.

    After you put the closing carrot from the link, that is where you put your text. And to finalize the link, you close it off with "</a>"

    To put a picture on the website, you simple just get the link of the picture, and you do:

    Code:
    <img src="http://newhax.com/images/suntzu_nhx_av.png">
    For those who dont know, img stands for image, and src stands for source.
    That alone anywhere, will show the image you have posted. The most common image type is a png.

    That is all for this tutorial, if you wish to know more, you can just reply below with your question!
Thread Status:
This thread is more than 180 days old.

Share This Page