You are viewing our Forum Archives. To view or take place in current topics click here.
HTML Help Needed
Posted:

HTML Help NeededPosted:

alexblake10
  • Junior Member
Status: Offline
Joined: Mar 17, 201113Year Member
Posts: 96
Reputation Power: 3
Status: Offline
Joined: Mar 17, 201113Year Member
Posts: 96
Reputation Power: 3
Hey guys, i have a gif i want to add to the html code but for some reason it wont show up D:

any help?

tyty
#2. Posted:
r00t
  • Administrator
Status: Offline
Joined: May 18, 201113Year Member
Posts: 16,410
Reputation Power: 24458
Status: Offline
Joined: May 18, 201113Year Member
Posts: 16,410
Reputation Power: 24458
You should post your code. The HTML image syntax is here [ Register or Signin to view external links. ]
#3. Posted:
Larph
  • TTG Addict
Status: Offline
Joined: Oct 01, 201113Year Member
Posts: 2,921
Reputation Power: 162
Status: Offline
Joined: Oct 01, 201113Year Member
Posts: 2,921
Reputation Power: 162
r00t pretty much covered it but i will add some extra depth and explanation.

Firstly you will need a image opening tag

<img


next you need to add the image source, now this is the absolute location of your image. Ensure that you also include the file type!

<img src="folder/your_image.gif"


This path is the same file tree as what it would be in your file explorer. if your image happens to be folder which is backwards from your current directory then you would use a path like this.

<img src="../folder/your_image.gif"


The "../" is how you can move back directories, if you wanted to move twice you would simple add "../../".

Next you will need to give your image an alternative name, this part is really simple so i will just represent in code.

<img src="folder/your_image.gif" alt="This is my GIF"


Finally you can add a style to your image, this allows you to tweak the size or your image as well as many other features you may want to add. The style is basically a quick way of doing CSS without having to open another document.

<img src="folder/your_image.gif" alt="This is my GIF" style="width: 250px;height: 250px;"


and to finalize everything don't forget to add a closing tag!

<img src="folder/your_image.gif" alt="This is my GIF" style="width: 250px;height: 250px;"/>


I hope this relatively short guide helped

If you need any further help with HTML or css il be happy to respond through a PM.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.