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 love the code... dot com
    143,032

    iLoveTheCode.com
    HTML > HTML Tutorials How To Easy > HTML Body Tag

    HTML Body Tag



    <html>
    <head>
    <title>My Great Page</title>
    </head>
    <body>
    Page text goes here.
    </body>
    </html>


    NOTE: Most of the time, HTML syntax is simply this: for each opening tag there is a matching closing tag that begins with </

    These are the basic tags that every HTML page needs.
    -html
    -head
    -title
    -body

    The body tag follows the closing head tag.

    <body background=/images/hi.jpg bgcolor=blue bgproperties=fixed text=red link=blue alink=red vlink=green topmargin=0 leftmargin=0 marginheight=0 marginwidth=0>

    Here are the body tag attributes and explanations:

    -background - This takes the path to an image. Full URL or relative path.
    -bgcolor - Can be standard color or hexidecimal with pound. Example: #FFFFCC
    -bgproperties - when set to fixed, background image will not scroll with page but will remain in place.
    -text - Text color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
    -link - Link color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
    -alink - Active Link color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
    -vlink - Visited Link color on page. Can be standard color or hexidecimal with pound. Example: #FFFFCC
    -topmargin - Number of pixels from top. (Most Browsers)
    -leftmargin - Number of pixels from left. (Most Browsers)
    -marginheight - Number of pixels from top. (Netscape)
    -marginwidth - Number of pixels from left. (Netscape)


    NOTES: When setting margins, the most widely implemented two attributes are topmargin and leftmargin (supported in IE, Firefox, Safari). The other two attributes are old Netscape attributes and I don't know if they even apply anymore. Doesn't hurt to throw them in.



    Resources:
    HTML Tutorials
    HTML Title Tag
    HTML Underline Text
    HTML Color Codes
    HTML Font Code
    HTML New Paragraph
    HTML Tags
    HTML Tables
    HTML Italic Tex
    HTML Bold Text
    HTML Strikethrough Text
    The Classic BareBones Guide to HTML
    W3C's Official HTML 4.01 documentation

    Javascript Query String
    Javascript Tutorials
    HTML Tags
    Perl Tutorials
    HTML Codes



    Previous Article: HTML Title Tag
    Next Article: HTML Space





    CSSCSS

    Eric Meyer

    New $29.69

    jQuery in ActionjQuery in Action

    Bear Bibeault, Yeh...

    New $26.39

    Information Architecture...Information Architecture for the Wor...

    Louis Rosenfeld, P...

    New $26.39

    Bulletproof Web DesignBulletproof Web Design

    Dan Cederholm

    New $23.99

    CSSCSS

    David McFarland

    New $23.09

    CSS MasteryCSS Mastery

    Andy Budd, Simon C...

    New $23.85

    Dreamweaver CS3Dreamweaver CS3

    David McFarland

    New $29.69

    HTML & XHTMLHTML & XHTML

    Chuck Musciano, Bi...

    New $29.99


    Of Interest:
  • To See if a Directory Exists in Perl
  • Matching with a Regular Expression, REGEX, in Perl
  • To Reverse an Array in Perl
  • Use the Perl PRINT FUNCTION
  • Get Query String Using Javascript
  • Javascript Sort - Use Sort on Items in an Array in Javascript
  • Use onLoad to Call More than One Function with Javascript
  • Javascript Status Bar
  • HTML Title Tag
  • HTML Superscript Text
  • Make a Line Return Using HTML
  • Make Text Bold Using HTML

  • More Articles:
  • Add to End of an Array with Push in Perl
  • Matching at the Beginning and End
  • To See if a Directory Exists in Perl
  • Add to the Beginning of an Array with Unshift in Perl
  • Javascript Change Fonts
  • Javascript Change Background Colors
  • Javascript Alert
  • onClick Javascript
  • Passing an Argument or Variable to a Javascript
  • Javascript Slice - Use Slice to Get Items from an Array in Javascript
  • Javascript Splice - Use Splice to Replace Items in an Array in Javascript
  • Javascript Reverse - Use Reverse on Items in an Array in Javascript
  • HTML Subscript Text
  • HTML Font Code
  • HTML Underline Text
  • Make Italic 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


    439,798
    Counter by iLoveTheCode.com


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