iLTC Home
Bookmark iLTC!
iLTC Google Boards

Google Groups
Receive The Code in Email!



Categories

Perl
  • Perl Tutorials Beginners

    Javascript
  • Javascript Tutorials
  • Javascript Tutorials Beginners

    HTML
  • HTML Tutorials



  • I bookmarked this site...
    20,102

    iLoveTheCode.com
    HTML > HTML Tutorials How To Easy > HTML Image

    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





    Bulletproof Web DesignBulletproof Web Design

    Dan Cederholm

    New $26.39

    DojoDojo

    Matthew A. Russell...

    New $26.39

    Pro CSS and HTML Design ...Pro CSS and HTML Design Patterns

    Michael Bowers

    New $29.69

    Struts 2 in ActionStruts 2 in Action

    Don Brown, Chad Da...

    New $29.69

    jQuery in ActionjQuery in Action

    Bear Bibeault, Yeh...

    New $26.39

    JavaScriptJavaScript

    David Flanagan

    New $31.49

    CSS MasteryCSS Mastery

    Andy Budd, Simon C...

    New $23.09

    CSSCSS

    Eric Meyer

    New $29.69

    Head First HTML with CSS...Head First HTML with CSS & XHTML

    Eric Freeman, Elis...

    New $26.39


    Of Interest:
  • Use the Perl PRINT FUNCTION
  • Renaming a File with Perl's RENAME Function
  • OPEN and READ a Data File in Perl
  • Matching at the Beginning and End 2
  • Javascript Join - Use Join to Make an Array into a String in Javascript
  • Javascript Subscript Text
  • Javascript Push - Use Push on an Array in Javascript
  • Exit a For Loop in Javascript with Break
  • HTML Space
  • HTML Body Tag
  • HTML Color Codes
  • HTML Subscript Text

  • More Articles:
  • To Reverse an Array in Perl
  • INCREMENT and DECREMENT a Variable in Perl
  • Add, Subtract, Multiply, and Divide in Perl
  • Opening and Reading a Directory in Perl
  • onClick Javascript
  • Javascript Alert
  • Match with a Regular Expression, REGEX, in Javascript
  • Use onClick in Javascript
  • Use onMouseOut in Javascript
  • Change a Form Field with Javascript
  • HTML Superscript Text
  • HTML Body Tag
  • HTML Subscript Text
  • Make Strikethrough Text Using HTML

  • Search iLTC w/ Google





    Recent Articles

  • Javascript Focus Form Field
  • Javascript Lowercase Text
  • Javascript Uppercase Text
  • Javascript Superscript Text
  • Javascript Subscript Text
  • Make Text Blink Using Javascript
  • Make a String into a Link in Javascript
  • Javascript Italics Text
  • Javascript Bold Text
  • Javascript Redirect
  • HTML Frames
  • HTML Color Chart
  • HTML Link
  • Javascript Status Bar








  • Perl Programming - Javascript Programming - Maybe Some PHP - Free Scripts - ILoveTheCode
    All Content © 2006 iLoveTheCode.com


    Contact Chris | About this Site


    316,842
    Counter by iLoveTheCode.com


    Last Modified: Friday, 23-Jun-2006 07:23:14 EDT