WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Technology Tuesday, March 20, 2018 
Print| Email| Save| Discuss| Feeds

Published: Tuesday, November 04, 2003


HTML body section specifications

HTML body section contains the display content of the web page. Web browser displays
this information of an HTML document. The body content consists
of text, images, graphics, audio, active objects, etc.

The body element's presentation
attributes are not used anymore in HTML 4.0, although web browsers still support them for
backward compatibility (for older webpages). The webpage presentation should be applied
using style sheets. Style sheets are covered in style sheet tutorial.

Example 1: (Deprecated in HTML 4.0) this may not work in future browsers.

<body bgcolor="white" text="black"
link="red" alink="fuchsia" vlink="maroon">
... document body...

Example 2: Using CSS styles (covered in style sheet tutorial)

<title>This Uses Styles</title>
<style type="text/css">
body { background: white; color: black }
a:link { color: red }
a:visited { color: maroon }
a:active { color: fuchsia }
... document body...


Some commonly used <body> attributes

Here is a list of commonly used attributes.

  1. onload :

    Alignment attribute - Aligns the element in horizontal direction.

    Values - left | center | right

    Some related elements - <img>, <input>, <table>, <hr>,
    <th>, <td>, <tr>, <iframe>.

  2. onunload :

    Vertical Alignment attribute - Aligns the element in vertical direction.

    Values - top | middle | baseline | bottom

    Some related elements - <th>, <td>, <tr>, <tbody>.

  3. bgcolor :

    Width attribute - Specifies the width of an element.

    Values - pixels | % of parent width

    Some related elements - <table>, <hr>, <iframe>, <img>,
    <td>, <th>.

  4. lang, dir :

    Height attribute - Specifies the height of an element.

    Values - pixels | % of parent height

    Some related elements - <table>, <hr>, <iframe>, <img>,
    <td>, <th>.

  5. id, class :

    Width attribute - Specifies the width of an element.

    Values - pixels | % of parent cell

    Some related elements - <table>, <hr>, <iframe>, <img>,
    <td>, <th>.

Previous Article HTML Head HTML Link Next Article
Print| Email| Save| Discuss| Feeds
Nav HTML Tutorial - Introduction
HTML stands for Hyper Text Markup Language. It is the publishing language of the World Wide Web (WWW). Learn about HTML in this tutorial.
News Post Technical Perspectives on Medical Equipment Stocks -- Accuray, AcelRx Pharma, Aethlon Medical, and CHF Solutions
Technical Perspectives on Medical Equipment Stocks -- Accuray, AcelRx Pharma, Aethlon Medical, and CHF Solutions NEW YORK, Ma...
News Post The Body Shop Launches First-Ever U.S. Out-of-Home Advertising Campaign in Partnership with OUTFRONT Media
Newest 'Forever Against Animal Testing' ads reach audiences on-the-go in prime locations, including New York City's first Liveboards installation outside of transit
News Post The global aerospace floor panels market size is expected to reach USD 554.4 million by 2025
Aerospace Floor Panels Market Size Analysis Report By Raw Material (Nomex Honeycomb, Aluminum Honeycomb), By Aircraft Type (Narrow body, Wide body, VLA), By End Use, By Region, And Segment Forecasts, 2014 - 2025
News Post Nectar Sleep Celebrates 100,000 Satisfied and Rejuvenated Customers
E-Commerce Platform Launches Social Media Campaign to Help America Sleep Better
News Post Tim Ali's new book "Generation Oz Trilogy" takes on the magical tale of Oz and its blend of unique and profound characters.
Recent release "Generation Oz Trilogy" from Page Publishing author Tim Ali is an enchanting novel about saving the great and terrible land of Oz from the ravages of evil wizards and monsters.
Submit News | View More NewsView more news
We have developed HTML Tagging Conversion software which can convert any TIFF Frech Srcipt Image to ...
Classified Ad Grabar pantalla
Grabar pantalla formato wmv - Free Screen To Video 1.2: Tu Escritorio en vĂ­deo en varios formatos y ...
Classified Ad Get OpenCart E-commerce Website with 20 % Discount
Inception System is the Leading E-commerce solutions Provider Company which has vast experience in O ...
Classified Ad Web-Software Development | Mobile App | Ecommerce
Rightway Solution started off with servicing clients in Responsive Web Development and E-commerce De ...
Classified Ad Opencart Development Services at Affordable Price
Inception System is premium eCommerce Web Development Company offering the efficient Opencart web de ...
Post Free Ad | View More View more classifieds
Forum Post How to convert psd into html?
Please let me know how to convert psd into html? I want to create a design from photoshop! ...
Forum Post html code help
I have been trying to use a code for media on my website however the Window media player comes up on ...
Forum Post HTML to enhance my javascript menu
To anyone that can help me I would really appreciate it! I have a javascript menu on a couple of ...
We can process Image/TIF/GIF files to html format. We have developed HTML Tagging Conversion Softwa ...
Forum Post DIY photo collage yearbook with digital photos
Christmas is coming and a year also comes to its end right away. From beginning to end, from spring ...
Add New Post | View More View more forum posts
Nav How To Sell A Website
Nav Subdomain Configuration - How To Setup A Sub Domain
Nav Domain Configuration - How To Setup A Domain Name
Nav Website Layout - Tips & Tricks
Nav Round Robin DNS Load Balancing
Nav Introduction To Server Load Balancing
Nav Website Traffic & Revenue
Nav Tips On Using SubDomain
View More News View More News