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



  • Perl with cheese...
    123,756

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

    HTML Background



    The HTML background tag can be used in a variety of places.

    <body background=/images/logo.jpg>
    <table background=/images/logo.jpg><tr>
    <td background=/images/logo.jpg>


    -The first tag <body> will make your entire page have the background image specified.
    -The second tag, the HTML tables tag, will make your entire table have the background image specified.
    -The third tag <td> will make your entire table cell have the background image specified.

    NOTE: The HTML background tag inside the table row <tr> doesn't work on Windows IE6.

    The path to your image can be relative or a full url.

    Relative URLs:
    -Remember the forward slash / will start the relative path in your serving directory.
    -No forward slash means start in the directory the html page is in.
    -dot dot slash ../ means goes up one directory.

    Full URL:
    -http://ilovethecode.com/images/iltc.gif is an example of a full url.


    Just for fun:

    To make your background image fixed or to stop it from repeating, write in a style tag with these properties:

    <body background=/images/logo.jpg style="background-attachment:fixed; background-repeat:no-repeat;">



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



    Previous Article: HTML Tables
    Next Article: HTML Tags





    HTMLHTML

    Gary B. Shelly, Th...

    New $84.55

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

    Eric Freeman, Elis...

    New $23.99

    CSS MasteryCSS Mastery

    Andy Budd, Simon C...

    New $23.85

    Learning Web DesignLearning Web Design

    Jennifer Niederst ...

    New $26.99

    Dreamweaver CS3Dreamweaver CS3

    David McFarland

    New $29.69

    jQuery in ActionjQuery in Action

    Bear Bibeault, Yeh...

    New $26.39

    Creating Web SitesCreating Web Sites

    Matthew MacDonald

    New $19.77

    HTML & XHTMLHTML & XHTML

    Chuck Musciano, Bi...

    New $29.99

    Bulletproof Web DesignBulletproof Web Design

    Dan Cederholm

    New $23.99


    Of Interest:
  • If, Elsif, and Else in Perl
  • To See if a Directory Exists in Perl
  • Finding the Length (Index Numbers) of an Array in Perl
  • Use chmod in Perl
  • Javascript Push - Use Push on an Array in Javascript
  • Javascript Concat - Use Concat to Join Two Arrays in Javascript
  • Select All or Highlight Text Fields and Textareas Using Javascript
  • Use innerHTML to Change Text on a Page
  • HTML Status
  • Make Italic Text Using HTML
  • HTML Forms
  • HTML Codes

  • More Articles:
  • What's in an Array, Index Numbers
  • Opening and Reading a Directory in Perl
  • Finding the Length (Index Numbers) of an Array in Perl
  • Substitute in Perl
  • Javascript Alert
  • onClick Javascript
  • Select All or Highlight Text Fields and Textareas Using Javascript
  • Get String Length with Javascript
  • Substitute in Javascript Using replace Method
  • Close Window with window.close in Javascript
  • HTML Font Code
  • Make Strikethrough Text Using HTML
  • HTML Underline Text
  • Make a New Paragraph 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


    420,517
    Counter by iLoveTheCode.com


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