iLTC Home
Bookmark iLTC!

Categories

Perl
  • Perl Tutorials Beginners

  • Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

  • HTML
  • HTML Tutorials

  • Command Line
  • Command Line Tutorials

  • How Tos
  • Other Tips and Tricks



  • for(var i;i < 1000;i++) { }
    1727913

    iLoveTheCode.com

    HTML Image

    <img src=/c/happy.jpg>

    Unlike most HTML tags the HTML image tag does not have a closing tag.

    src= contains the path to the image.

    -This path can be the full url
    example: http://ilovethecode.com/images/iltc.gif
    -Or this path can be relative
    example of one directory up: ../iltc.gif
    -Or from your serving directory
    example: /iltc.gif


    The most commonly used parameters for the image tag are as follows:

    border=3 <--- number of pixels
    align=top <--- top bottom middle left right
    alt="My Happy JPG" <--- text to display if image doesn't display. Needs quotes.
    width=50 <--- image width in pixels or add % sign
    height=50 <--- image height or add % sign
    hspace=5 <--- to wrap text around - pixels - horizontal
    vspace=5 <--- to wrap text around - pixels - vertical


    <img src=/c/happy.jpg border=3 align=right alt="Happy JPEG" width=50 height=50 hspace=5 vspace=5>


    You can find the obscure HTML Image tag parameters using the link to BareBones below.


    Resources:
    The Classic BareBones Guide to HTML
    Make a New Paragraph Using HTML
    HTML Tags
    HTML Tables
    W3C's Official HTML 4.01 documentation
    HTML Background
    Make Italic Text Using HTML
    Make Text Bold Using HTML
    Make Strikethrough Text Using HTML
    Make a Line Return Using HTML
    HTML Codes





    Previous Article: HTML Center
    Next Article: HTML Font Code






    Search iLTC w/ Google




    Recent Articles

  • HTML Font Code
  • Javascript and CSS - Easy Pop Up Help Balloons
  • Use OnMouseOver in Javascript
  • Use onMouseOut in Javascript
  • Use innerHTML to Change Text on a Page
  • Renaming a File with Perl's RENAME Function
  • PRINT to Browser with document.write Command in Javascript
  • Passing an Argument or Variable to a Javascript
  • Opening an Alert Box in Javascript
  • Opening a REMOTE WINDOW in Javascript
  • OPEN and WRITE a Data File in Perl
  • OPEN and READ a Data File in Perl
  • Mimic Typing from a Textfield in a Textarea with Javascript
  • Javascript Reset Form








  • Perl Programming - Javascript Programming - HTML Code - Mac Unix Command Line - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006-2009 iLoveTheCode.com


    Contact Chris | About this Site


    1727638
    Counter by iLoveTheCode.com


    Last Modified: Saturday, 10-Jan-2009 05:40:24 EST



    Hosted as well :)
    Home-brewed logo - 1997